IdrisDoc: Prelude.Foldable

Prelude.Foldable

sum : Foldable t => Num a => t a -> a

Add together all the elements of a structure

product : Foldable t => Num a => t a -> a

Multiply together all elements of a structure

or : Foldable t => t (Lazy Bool) -> Bool

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.

default#foldl : Foldable t => (acc -> elt -> acc) -> acc -> t elt -> acc
concatMap : Foldable t => Monoid m => (a -> m) -> t a -> m

Combine into a monoid the collective results of applying a function
to each element of a structure

concat : Foldable t => Monoid a => t a -> a

Combine each element of a structure into a monoid

any : Foldable t => (a -> Bool) -> t a -> Bool

The disjunction of the collective results of applying a
predicate to all elements of a structure. any short-circuits
from left to right.

and : Foldable t => t (Lazy Bool) -> Bool

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.

all : Foldable t => (a -> Bool) -> t a -> Bool

The disjunction of the collective results of applying a
predicate to all elements of a structure. all short-circuits
from left to right.

class Foldable 
foldr : Foldable t => (elt -> acc -> acc) -> acc -> t elt -> acc
foldl : Foldable t => (acc -> elt -> acc) -> acc -> t elt -> acc