ISet<A>.fromFoldable constructor

ISet<A>.fromFoldable(
  1. Order<A> order,
  2. Foldable foldable,
  3. dynamic fa
)

Implementation

factory ISet.fromFoldable(Order<A> order, Foldable foldable, fa) => foldable.foldLeft(fa, new ISet.empty(order), (p, a) => p.insert(cast(a)));