Companion

object Companion

Functions

Link copied to clipboard
fun <T> Field<T>.hood(transform: (T, T) -> T): T

Reduce the elements of a field using the transform function.

Link copied to clipboard
fun <T, R> Field<T>.hoodInto(initial: R, transform: (R, T) -> R): R

Reduce the elements of a field starting with a initial value and a transform function.

Link copied to clipboard
fun <T> Field<T>.reduce(includingSelf: Boolean = true, transform: (accumulator: T, T) -> T): T

Reduce the elements of the field using the transform function.