explode method
Fills this range of values between from
and to
(to
not included).
Example:
(from: Note.c, to: Note.e.flat).explode()
== const [Note.c, Note.d.flat, Note.d, Note.e.flat]
See also:
- IterableExtension.compact for the inverse operation.
Implementation
List<E> explode({E Function(E current)? nextValue, Comparator<E>? compare}) =>
_explode(
nextValue: nextValue ?? Scalable.chromaticMotion,
compare: compare ?? Scalable.compareEnharmonically,
);