foldIn

abstract fun <R> foldIn(initial: R, operation: (R, SwingModifier.Element) -> R): R

Accumulates a value across the modifier's elements in declaration (application) order. Rarely needed directly.

Return

the accumulated value; initial where the modifier has no elements.

Parameters

initial

the value handed to the first element of the modifier.

operation

combines the value accumulated so far with one element and yields the value the next element is handed.