This repository was archived by the owner on Oct 4, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ instance eqSet :: (Eq a) => Eq (Set a)
1919instance showSet :: (Show a) => Show (Set a)
2020instance ordSet :: (Ord a) => Ord (Set a)
2121instance monoidSet :: (Ord a) => Monoid (Set a)
22- instance monoidSemigroup :: (Ord a) => Semigroup (Set a)
22+ instance semigroupSet :: (Ord a) => Semigroup (Set a)
23+ instance foldableSet :: Foldable Set
2324```
2425
2526#### ` empty `
@@ -86,15 +87,15 @@ Delete a value from a set
8687toList :: forall a. Set a -> List a
8788```
8889
89- Convert a set to an array
90+ Convert a set to a list
9091
9192#### ` fromList `
9293
9394``` purescript
9495fromList :: forall a. (Ord a) => List a -> Set a
9596```
9697
97- Create a set from an array of elements
98+ Create a set from a list of elements
9899
99100#### ` size `
100101
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ instance ordSet :: (Ord a) => Ord (Set a) where
4646instance monoidSet :: (Ord a ) => Monoid (Set a ) where
4747 mempty = empty
4848
49- instance monoidSemigroup :: (Ord a ) => Semigroup (Set a ) where
49+ instance semigroupSet :: (Ord a ) => Semigroup (Set a ) where
5050 append = union
5151
5252instance foldableSet :: Foldable Set where
You can’t perform that action at this time.
0 commit comments