Skip to content

ISetNestedOps<A>

extensionISetNestedOps<A>onISet<ISet<A>>

Flattening operations for nested ISet values.

Methods

flatten() extension

ISet<A>flatten()

Combines all nested set into one set using concatenation.

Available on ISet<A>, provided by the ISetNestedOps<A> extension

Implementation
dart
ISet<A> flatten() => fold(iset({}), (z, a) => z.concat(a.toIList()));