IterableExtension<T> extension
- on
-
- Iterable<
T>
- Iterable<
Methods
-
separatedBy(
T separator) → List< T> -
Creates a new list from the iterable by interspersing a given
separator
between each element. If the iterable contains less than two elements, the original iterable is returned as a list.