fold

open fun fold(initial: A, combine: (A, A) -> A, source: S): A

Fold using the given initial value and combine function.