Stream

take/2

take(enumerable, count)

Lazily takes the next count elements from stream and stops enumeration.

If a negative count is given, the last count values will be taken.