fold

fun <ID : Any, T, R> Field<ID, T>.fold(initial: R, transform: (R, T) -> R): R

Folds the elements of a field starting with an initial through a transform function. The local value is not considered, unless explicitly passed as initial.