InPlace.Heap
(inplace v0.7.1)
Copy Markdown
Binary heap. NOTE:
- The heap keys are limited to integers.
- The capacity of the heap has to be specified at the time of creation.
Summary
Functions
Initialize. All values are initially null. The element at capacity+1 is used to track the heap size. Options
Functions
Initialize. All values are initially null. The element at capacity+1 is used to track the heap size. Options:
comparator- function of arity 2, returns true if 1st argument strictly 'lesser' than 2nd.lesseris understood as the ordering function. Arguments could be of any type. Default: &Kernel.</2getter- function of arity 1; takes an integer (key) as argument and returns value of type integer() Default: