take method Null safety
- int count
Returns a lazy iterable of the
count first elements of this iterable.
Iterable may contain fewer than
count elements, if
contains fewer than
The elements can be computed by stepping through iterator until
elements have been seen.
count must not be negative.
Iterable<E> take(int count) => new SubListIterable<E>(this, 0, count);