# `InPlace.Heap`

Binary heap.
NOTE:
- The heap keys are limited to integers.
- The capacity of the heap has to be specified at the time of creation.

# `decrease_key`

# `default_opts`

# `empty?`

# `extract_min`

# `get_key`

# `get_key_position`

# `get_max`

# `get_min`

# `heapify`

# `heapify`

# `insert`

# `new`

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.
`lesser` is understood as the ordering function. Arguments could be of any type.
 Default: &Kernel.</2
- `getter` - function of arity 1; takes an integer (key) as argument and returns value of type integer()
 Default:

# `sift_down`

# `sift_up`

# `size`

# `valid?`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
