Skip to content

IListNestedOps<A>

extension IListNestedOps<A> on IList<IList<A>>

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));