Consider the following list of Boolean values in Scala
List(true, false, false, true)
How would you using either foldRight or foldLeft emulate
Without initial value as in foldLeft,
foldLeft
List(true, false, false, true).reduce(_&&_)
Yet this works not for List.empty[Boolean].
List.empty[Boolean]