Kactoos

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

<init>

Repeated(max: Int, element: T)Repeated(repeat: Int, element: KScalar<T>)

Repeat an element.

If you need to repeat endlessly, use Endless.

Parameters

T - Element type

repeat - How many times to repeat

element - Element to repeat

Since 0.3