Companion

object Companion

Base operations on Fields.

Functions

Link copied to clipboard
fun checkAligned(field1: Field<*, *>, field2: Field<*, *>, vararg fields: Field<*, *>)

Check if two or more fields are aligned, throwing an IllegalStateException otherwise.

Link copied to clipboard
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.

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

Reduce the elements of the field using the transform function. The local value is not considered, unless explicitly passed as default.