explode method
Fills this range of values between from
and to
(to
not included).
Example:
const (from: 1, to: 10).explode(
nextValue: (current) => current + 1,
compare: Comparable.compare,
) == const [1, 2, 3, 4, 5, 6, 7, 8, 9]
See also:
- IterableExtension.compact for the inverse operation.
Implementation
List<E> explode({
required E Function(E current) nextValue,
required Comparator<E> compare,
}) =>
_explode(nextValue: nextValue, compare: compare);