Package

purescript-heap

Repository
tshinohara/purescript-heap
License
MIT
Uploaded by
tshinohara
Published on
2017-10-10T12:44:07Z

Heap data structure. Implemented using Leftist heap.

Usage

main = do
  let heap :: Heap Min Int
      heap = empty
             # insert 4
             # insert 5
             # insert 2
             # insert 9
  log $ show $ min heap              -- => 2
  log $ show $ min (deleteMin heap)  -- => 4
Modules
Data.Heap
Dependencies