kactoos-jvm / nnl.rocks.kactoos.scalar / Folded
class Folded<out X : Any, T : Any> : Scalar<X>
Iterable, which elements are “folded” through the func.
T - Type of element
X - Type of input and output
input - Input
func - Func original
iterable - List of items
Since 0.9
| Name | Summary |
|---|---|
| <init> | Folded(input: X, func: BiFunc<X, T, X>, iterable: Iterable<T>)Folded(input: X, func: KBiFunc<X, T, X>, iterable: Iterable<T>)Iterable, which elements are “folded” through the func. |
| Name | Summary |
|---|---|
| invoke | fun invoke(): XGet value of this Scalar |