Module foldable

Module foldable 

Source

Traits§

Foldable
A typeclass for structures that can be folded to a single value.

Functions§

fold_left
Folds the structure by applying a function from left to right.
fold_map
Maps values to a monoid and combines them.
fold_right
Folds the structure by applying a function from right to left.