Skip to content

jasonzoladz/purescript-sets

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Module Documentation

Module Data.Set

Set

data Set a

eqSet

instance eqSet :: (P.Eq a) => P.Eq (Set a)

showSet

instance showSet :: (P.Show a) => P.Show (Set a)

empty

empty :: forall a. Set a

isEmpty

isEmpty :: forall a. Set a -> Boolean

singleton

singleton :: forall a. a -> Set a

checkValid

checkValid :: forall a. Set a -> Boolean

member

member :: forall a. (P.Ord a) => a -> Set a -> Boolean

insert

insert :: forall a. (P.Ord a) => a -> Set a -> Set a

delete

delete :: forall a. (P.Ord a) => a -> Set a -> Set a

toList

toList :: forall a. Set a -> [a]

fromList

fromList :: forall a. (P.Ord a) => [a] -> Set a

union

union :: forall a. (P.Ord a) => Set a -> Set a -> Set a

unions

unions :: forall a. (P.Ord a) => [Set a] -> Set a

difference

difference :: forall a. (P.Ord a) => Set a -> Set a -> Set a

About

Purely functional set data structure

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PureScript 75.3%
  • JavaScript 24.7%