effect-io-ai

Package: effect
Module: SortedSet

SortedSet.fromIterable

Creates a new SortedSet from an iterable collection of values.

Signature

declare const fromIterable: { <B>(ord: Order<B>): <A extends B>(iterable: Iterable<A>) => SortedSet<A>; <A extends B, B>(iterable: Iterable<A>, ord: Order<B>): SortedSet<A>; }

Source

Since v2.0.0