IterableUtils<E> extension
Miscellaneous utility methods for Iterable.
- on
-
- Iterable<
E>
- Iterable<
Methods
-
drain(
) → void - Iterates over all elements, discarding the results.
-
padLeft(
int totalLength, {required E padValue}) → Iterable< E> - Pads elements to the beginning of this Iterable to make it have the specified length.
-
padRight(
int totalLength, {required E padValue}) → Iterable< E> - Pads elements to the end of this Iterable to make it have the specified length.
-
startsWith(
Iterable< E> other) → bool -
Returns
true
ifthis
starts withother
in order.