splitAt method
- int n
Return a Tuple2 where first element is an Iterable
with the first n
elements of this Iterable
,
and the second element contains the rest of the Iterable
.
Implementation
Tuple2<Iterable<T>, Iterable<T>> splitAt(int n) => Tuple2(take(n), skip(n));