The unit of connection (i.e. and) is equal true, while the unit of disjunction (i.e. or) isfalse
Consider a list lstwith items n.
lst.forall(f) equivalently
true && f(lst(0)) && ... && f(lst(n-1))
lst.exists(f) equivalently
false || f(lst(0)) || ... || f(lst(n-1))
In the case of an empty list, there is only the first term in the above expressions.
source
share