Kactoos

kactoos-jvm / nnl.rocks.kactoos.scalar / Folded

Folded

class Folded<out X : Any, T : Any> : Scalar<X>

Iterable, which elements are “folded” through the func.

Parameters

T - Type of element

X - Type of input and output

input - Input

func - Func original

iterable - List of items

Since 0.9

Constructors

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.

Functions

Name Summary
invoke fun invoke(): X
Get value of this Scalar