A Lamdera package. It is not on package.elm-lang.org: the Lamdera compiler provides it, from static.lamdera.com, so lamdera install works and elm install does not.
A set of unique values.
Remove a value from a set. If the value is not found, no changes are made.
Check if two sets are equal regardless what order items were inserted.
Note that this is not the same as writing set1 == set2. Insertion order matters when using ==.
set1 = SeqSet.fromList [ ( "A", 1 ), ( "B", 2 ) ]
set2 = SeqSet.fromList [ ( "B", 2 ), ( "A", 1 ) ]
SeqSet.unorderedEquals set1 set2 -- True
set1 == set2 -- FalseGet the intersection of two sets. Keeps values that appear in both sets.
Get the difference between the first set and the second. Keeps values that do not appear in the second set.
Map a function onto a set, creating a new set with no duplicates.
Create a new set consisting only of elements which satisfy a predicate.
Create two new sets; the first consisting of elements which satisfy a predicate, the second consisting of elements which do not.
The Lamdera compiler relies on this function, it is not intended to be used directly. Vendor this function in your own codebase if you want to use it, as the encoding can change without notice.
Represents a set of unique values. So
(Set Int)is a set of integers and(Set String)is a set of strings.