Consider the following list of Boolean values in Scala
List(true, false, false, true)
How would you using either foldRight or foldLeft emulate
val l = List(true, false, false, true) val andAll = l.foldLeft(true)(_ && _)