Kactoos

kactoos-jvm / nnl.rocks.kactoos.func / Repeated / <init>

<init>

Repeated(proc: Proc<X>, result: Y, max: Int)

Parameters

proc - Proc

max - How many times

Since 0.4

Repeated(func: Func<X, Y>, times: Int)

Func that repeats its calculation a few times before returning the last result. If times is equal or less than zero Repeated.apply will return an exception.

Parameters

func - Func original

times - How many times.

X - Type of input

Y - Type of output

Since 0.4