Skip to content

IListNestedOps<A>

extensionIListNestedOps<A>onIList<IList<A>>

Flattening operations for nested IList values.

Methods

flatten() extension

IList<A>flatten()

Combines all nested lists into one list using concatenation.

Available on IList<A>, provided by the IListNestedOps<A> extension

Implementation
dart
IList<A> flatten() => foldLeft(nil<A>(), (z, a) => z.concat(a));