kactoos-jvm / nnl.rocks.kactoos.func / Repeated / <init>
Repeated(proc:
Proc
<
X
>, result:
Y
, max:
Int
)
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.
func
- Func original
times
- How many times.
X
- Type of input
Y
- Type of output
Since 0.4