@@ -30,13 +30,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3030* ` hashSet { } ` builds a hash set, and ` HashSetCE ` created with an equality comparer builds hash sets that compare with it;
3131 a ` null ` comparer throws ` ArgumentNullException ` .
3232* ` SortedSet ` has every function of the FSharp.Core ` Set ` module, with its semantics, argument order and exceptions, plus
33- ` builder ` , ` builderWithComparer ` , ` choose ` , ` clear ` , ` comparer ` , ` emptyWithComparer ` , ` indexOf ` , ` item ` , ` ofBuilder ` ,
34- ` ofSeqWithComparer ` , ` overlaps ` , ` rev ` , ` setEquals ` , ` symmetricDifference ` , ` toBuilder ` , ` tryGetValue ` , ` tryItem ` and
35- ` withComparer ` .
33+ ` builder ` , ` choose ` , ` clear ` , ` comparer ` , ` forComparer ` , ` indexOf ` , ` item ` , ` ofBuilder ` , ` overlaps ` , ` rev ` , ` setEquals ` ,
34+ ` symmetricDifference ` , ` toBuilder ` , ` tryGetValue ` and ` tryItem ` .
35+ * ` SortedSet.forComparer comparer ` creates the ` CustomComparerSortedSet ` struct, whose members ` empty ` , ` ofArray ` ,
36+ ` ofList ` , ` ofSeq ` , ` singleton ` and ` builder ` create sorted sets and builders that order their elements with the
37+ comparer, as in ` (SortedSet.forComparer StringComparer.OrdinalIgnoreCase).ofSeq names ` . ` ofSeq ` also gives an existing
38+ sorted set the comparer, and returns it when it has the comparer already. A ` null ` comparer throws
39+ ` ArgumentNullException ` . The element type needs no F# comparison; the default value of the struct orders with
40+ ` Comparer<'T>.Default ` , as the BCL does for a ` null ` comparer.
3641* The ` FSharp.Collections.Immutable.Option.SortedSet ` and ` FSharp.Collections.Immutable.Tuple.SortedSet ` modules repeat
3742 ` choose ` , ` tryGetValue ` and ` tryItem ` with options, and ` partition ` and ` partitionWith ` with reference tuples.
3843* ` sortedSet { } ` builds a sorted set, and ` SortedSetCE ` created with a comparer builds sorted sets that order their
39- elements with it.
44+ elements with it; a ` null ` comparer throws ` ArgumentNullException ` .
4045
4146### Changed
4247
@@ -62,11 +67,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6267 contain strings, compare ordinally instead of in the order of the current culture.
6368* ` SortedSet ` : ` difference set1 set2 ` returns the elements of ` set1 ` that are not in ` set2 ` , as ` Set.difference ` does; it
6469 took its arguments in the reverse order before.
65- * ` SortedSet ` : ` length ` is renamed to ` count ` , ` keyComparer ` to ` comparer ` and ` ofComparer ` to ` emptyWithComparer ` .
70+ * ` SortedSet ` : ` length ` is renamed to ` count ` and ` keyComparer ` to ` comparer ` .
6671* ` SortedSet ` : ` filter ` , ` partition ` and the set algebra keep the comparer of their input, the set algebra that of the
6772 first set. ` filter ` dropped the comparer before.
68- * ` SortedSet ` : ` ofSeq ` , ` ofArray ` and ` ofSeqWithComparer ` keep the first of the elements that compare equal, as
69- ` Set. ofSeq` does; they could keep any of them before.
73+ * ` SortedSet ` : ` ofSeq ` and ` ofArray ` keep the first of the elements that compare equal, as ` Set.ofSeq ` does, and so do
74+ the members of ` CustomComparerSortedSet ` ; ` ofSeq ` , ` ofArray ` and ` ofSeqWithComparer ` could keep any of them before.
7075* ` SortedSet ` : ` tryGetValue ` returns ` voption ` , ` choose ` takes a function that returns ` voption ` , and ` partition ` and
7176 ` partitionWith ` return struct tuples.
7277* ` SortedSet ` : ` unionMany ` of an empty sequence returns an empty sorted set, as ` Set.unionMany ` does, and every function
@@ -87,9 +92,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8792* ` HashSet.ofComparer ` , ` ofSeqWithComparer ` , ` builderWithComparer ` and ` builderWith ` , which took a comparer despite its
8893 name: use the members ` empty ` , ` ofSeq ` and ` builder ` of ` HashSet.forComparer comparer ` .
8994* The ` SortedSetBuilder<'T> ` abbreviation: use ` SortedSet<'T>.Builder ` .
90- * ` SortedSet.where ` : use ` filter ` . ` SortedSet.pick ` , ` tryPick ` and ` vTryPick ` : use ` Seq.pick ` and ` Seq.tryPick ` .
91- ` SortedSet.builderWith ` , which took a comparer despite its name: use ` builderWithComparer ` . The public
92- ` SortedSet.check ` .
95+ * ` SortedSet.where ` : use ` filter ` . ` SortedSet.pick ` , ` tryPick ` and ` vTryPick ` : use ` Seq.pick ` and ` Seq.tryPick ` . The
96+ public ` SortedSet.check ` .
97+ * ` SortedSet.ofComparer ` , ` ofSeqWithComparer ` , ` builderWithComparer ` and ` builderWith ` , which took a comparer despite its
98+ name: use the members ` empty ` , ` ofSeq ` and ` builder ` of ` SortedSet.forComparer comparer ` .
9399
94100## [ 1.0.0] - 2020-02-23
95101
0 commit comments