Intersperse<A> extension

on

Methods

intersperse(A item, {bool beforeFirst = false, bool afterLast = false}) Iterable<A>
Creates a new Iterable with the separator interposed between elements.
intersperseWith<B>({required Transformer<A, B> itemBuilder, required SeparatorBuilder<A, B> separatorBuilder, Transformer<A, B>? beforeFirst, Transformer<A, B>? afterLast}) Iterable<B>
Creates a new Iterable with the separator interposed between elements.