I wanted to ensure if I could accomplish this by using reduceLeft rather than foldLeft. I am searching a given number in the List
val included = List(46, 19, 92).foldLeft(false) { (a, i) =>
| if (a) a else (i == 19)
| }
included: Boolean = true
However I want to accomplish the same using reduceLeft, is it possible?