Kactoos

kactoos-jvm / nnl.rocks.kactoos.scalar / Folded / <init>

<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.

Parameters

T - Type of element

X - Type of input and output

input - Input

func - Func original

iterable - List of items

Since 0.9