Kactoos

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

HeadOf

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

Head portion of the iterable.

There is no thread-safety guarantee.

Parameters

T - Element type

num - Number of head elements

iterable - Decorated iterable

Since 0.4

Constructors

Name Summary
<init> HeadOf(num: Int, vararg src: T)HeadOf(num: Int, iterable: Iterable<T>)
Head portion of the iterable.

Inherited Functions

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