Data.Union.Type
data Union a Source #
An immutable disjoint set forest.
Constructors
Fields
newtype Node Source #
A node in a disjoint set forest.
Defined in Data.Union.Type
Methods
range :: (Node, Node) -> [Node] #
index :: (Node, Node) -> Node -> Int #
unsafeIndex :: (Node, Node) -> Node -> Int #
inRange :: (Node, Node) -> Node -> Bool #
rangeSize :: (Node, Node) -> Int #
unsafeRangeSize :: (Node, Node) -> Int #
(==) :: Node -> Node -> Bool #
(/=) :: Node -> Node -> Bool #
compare :: Node -> Node -> Ordering #
(<) :: Node -> Node -> Bool #
(<=) :: Node -> Node -> Bool #
(>) :: Node -> Node -> Bool #
(>=) :: Node -> Node -> Bool #
max :: Node -> Node -> Node #
min :: Node -> Node -> Node #