kactoos-jvm / nnl.rocks.kactoos.iterable / Repeated
class Repeated<out T :
Any
> :
IterableEnvelope
<
T
>
Repeat an element.
If you need to repeat endlessly, use Endless.
T
- Element type
total
- The total number of repetitions
item
- The element to repeat
Since 0.1
Name | Summary |
---|---|
<init> | Repeated(total: Int , elm: T ) Repeated(total: Int , item: KScalar < T >) Repeat an element. |
Name | Summary |
---|---|
iterator | open fun iterator(): Iterator < T > |