int count
) Returns a lazy iterable of the count
first elements of this iterable.
The returned Iterable
may contain fewer than count
elements, if this
contains fewer than count
elements.
The elements can be computed by stepping through iterator until count
elements have been seen.
The count
must not be negative.
Source
/**
* Returns a lazy iterable of the [count] first elements of this iterable.
*
* The returned `Iterable` may contain fewer than `count` elements, if `this`
* contains fewer than `count` elements.
*
* The elements can be computed by stepping through [iterator] until [count]
* elements have been seen.
*
* The `count` must not be negative.
*/
Iterable<E> take(int count);