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