@@ -15,6 +15,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515* The ` FSharp.Collections.Immutable.Option.FlatList ` and ` FSharp.Collections.Immutable.Tuple.FlatList ` modules repeat the
1616 functions that use value options or struct tuples with options and reference tuples.
1717* The ` FlatListBuilder ` module works on the builder of a flat list, and ` flatList { } ` builds a flat list.
18+ * ` HashSet ` has every function of the FSharp.Core ` Set ` module that applies to a hash set, with its semantics, argument
19+ order and exceptions, plus ` builder ` , ` builderWithComparer ` , ` choose ` , ` clear ` , ` comparer ` , ` emptyWithComparer ` ,
20+ ` ofBuilder ` , ` ofSeqWithComparer ` , ` overlaps ` , ` setEquals ` , ` symmetricDifference ` , ` toBuilder ` , ` tryGetValue ` and
21+ ` withComparer ` .
22+ * The ` ISet ` module works on any ` IImmutableSet<'T> ` with the functions of ` HashSet ` that need neither a creation nor a
23+ comparer; the transformations that keep the element type return the implementation of their input.
24+ * The ` FSharp.Collections.Immutable.Option.HashSet ` , ` FSharp.Collections.Immutable.Tuple.HashSet ` ,
25+ ` FSharp.Collections.Immutable.Option.ISet ` and ` FSharp.Collections.Immutable.Tuple.ISet ` modules repeat ` choose ` and
26+ ` tryGetValue ` with options, and ` partition ` and ` partitionWith ` with reference tuples.
27+ * ` hashSet { } ` builds a hash set, and ` HashSetCE ` created with an equality comparer builds hash sets that compare with it.
1828
1929### Changed
2030
@@ -24,6 +34,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2434 ` voption ` ; the functions that return tuples return struct tuples.
2535* ` FlatList ` : every function throws what the FSharp.Core ` Array ` function of the same name throws. ` take ` and ` splitAt `
2636 throw for a count beyond the length, and a default ` ImmutableArray ` throws ` ArgumentNullException ` .
37+ * ` HashSet ` : ` difference set1 set2 ` returns the elements of ` set1 ` that are not in ` set2 ` , as ` Set.difference ` does; it
38+ took its arguments in the reverse order before.
39+ * ` HashSet ` : ` length ` is renamed to ` count ` , ` keyComparer ` to ` comparer ` and ` ofComparer ` to ` emptyWithComparer ` .
40+ * ` HashSet ` : ` filter ` , ` partition ` and the set algebra keep the comparer of their input, the set algebra that of the first
41+ set; ` map ` , ` choose ` and ` partitionWith ` compare with the default comparer of the result type. ` filter ` dropped the
42+ comparer before.
43+ * ` HashSet ` : ` tryGetValue ` returns ` voption ` , ` choose ` takes a function that returns ` voption ` , and ` partition ` and
44+ ` partitionWith ` return struct tuples.
45+ * ` HashSet ` : ` unionMany ` of an empty sequence returns an empty hash set, as ` Set.unionMany ` does, and every function throws
46+ ` ArgumentNullException ` for a ` null ` hash set, sequence or array.
2747
2848### Removed
2949
@@ -32,6 +52,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3252* ` FlatList.removeAll ` , ` removeAllWith ` , ` removeRange ` , ` sortRange ` , ` sortRangeWith ` , ` sortRangeWithComparer ` and ` sub ` ,
3353 and the ` ImmutableArray ` module alias of ` FlatList ` .
3454* The ` Seq ` module of conversions between the collections.
55+ * The ` ISet<'T> ` abbreviation of ` IImmutableSet<'T> ` , because it shadowed ` System.Collections.Generic.ISet<'T> ` : use
56+ ` IImmutableSet<'T> ` and the ` ISet ` module.
57+ * The ` HashSetBuilder<'T> ` abbreviation: use ` HashSet<'T>.Builder ` .
58+ * ` HashSet.where ` : use ` filter ` . ` HashSet.pick ` , ` tryPick ` and ` vTryPick ` : use ` Seq.pick ` and ` Seq.tryPick ` .
59+ ` HashSet.builderWith ` , which took a comparer despite its name: use ` builderWithComparer ` . The public ` HashSet.check ` .
3560
3661## [ 1.0.0] - 2020-02-23
3762
0 commit comments