IterableTakeDropLast<T> extension
Collections More: take/drop last, replace first/all, cycle, pad, unzip, segment, consecutive pairs, etc. Roadmap #266-290. Take/drop from the end of an iterable.
- on
-
- Iterable<
T>
- Iterable<
Methods
-
dropLast(
int n) → List< T> -
Available on Iterable<
All but the lastT> , provided by the IterableTakeDropLast extensionnelements. -
takeLast(
int n) → List< T> -
Available on Iterable<
LastT> , provided by the IterableTakeDropLast extensionnelements; all if n >= length.