The Foldable
interface describes how you can iterate over the
elements in a parameterised type and combine the elements
together, using a provided function, into a single result.
Successively combine the elements in a parameterised type using
the provided function, starting with the element that is in the
final position i.e. the right-most position.
The same as foldr
but begins the folding from the element at
the initial position in the data structure i.e. the left-most
position.
The disjunction of the collective results of applying a
predicate to all elements of a structure. all
short-circuits
from left to right.
The conjunction of all elements of a structure containing
lazy boolean values. and
short-circuits from left to right,
evaluating until either an element is False
or no elements remain.
The disjunction of the collective results of applying a
predicate to all elements of a structure. any
short-circuits
from left to right.
Combine each element of a structure into a monoid
Combine into a monoid the collective results of applying a function
to each element of a structure
The disjunction of all elements of a structure containing
lazy boolean values. or
short-circuits from left to right, evaluating
either until an element is True
or no elements remain.
Multiply together all elements of a structure
Add together all the elements of a structure