fold

open fun Collection<A>.fold(): A

Fold an Collection of A values.


open fun fold(elems: List<A>): A

Fold an array of A values.