module BinomialHeapDef where
data BinomialTree a = Node Int a [BinomialTree a]
deriving (Eq, Show)
— Fields: rank, priority, list of child subtrees
module BinomialHeapDef where
data BinomialTree a = Node Int a [BinomialTree a]
deriving (Eq, Show)
— Fields: rank, priority, list of child subtrees