Kactoos

kactoos-jvm / nnl.rocks.kactoos.iterable / Repeated

Repeated

class Repeated<out T : Any> : IterableEnvelope<T>

Repeat an element.

If you need to repeat endlessly, use Endless.

Parameters

T - Element type

total - The total number of repetitions

item - The element to repeat

Since 0.1

Constructors

Name Summary
<init> Repeated(total: Int, elm: T)Repeated(total: Int, item: KScalar<T>)
Repeat an element.

Inherited Functions

Name Summary
iterator open fun iterator(): Iterator<T>