take

Returns a sequence containing first n elements.

The operation is intermediate and stateless.

Since Kotlin

1.0

Throws

Samples