Packages

builtin
cbindgen
core
core.alloc
core.alloc.arena
core.alloc.atomic
core.alloc.debug
core.alloc.fixed
core.alloc.gc
core.alloc.heap
core.alloc.log
core.alloc.memwatch
core.alloc.pool
core.alloc.ring
core.arg_parse
core.array
core.avl_tree
core.bucket_array
core.conv
core.crypto
core.crypto.keys
core.doc
core.encoding
core.encoding.base64
core.encoding.csv
core.encoding.hex
core.encoding.json
core.encoding.kdl
core.encoding.osad
core.encoding.utf8
core.encoding.xml
core.hash
core.hash.md5
core.hash.sha1
core.hash.sha256
core.heap
core.intrinsics
core.intrinsics.atomics
core.intrinsics.onyx
core.intrinsics.types
core.intrinsics.wasm
core.io
core.io.binary
core.iter
core.js
core.list
core.map
core.math
core.memory
core.misc
core.net
core.os
core.random
core.set
core.slice
core.string
core.sync
core.test
core.thread
core.time
main
runtime
runtime.info
runtime.platform
runtime.vars
simd

package core.heap

Heap
Heap :: struct (T: type_expr) {
    data: [..] T
    compare: (T, T) -> i32
}
Methods
Heap.empty
Heap.empty :: macro (heap: &Heap) -> #auto
Heap.init
Heap.init :: (heap: &Heap, cmp: (heap.T, heap.T) -> i32) -> void
Heap.insert
Heap.insert :: (heap: &Heap, v: heap.T) -> void
Heap.make
Heap.make :: ($T: type_expr, cmp: (T, T) -> i32) -> Heap(T)
Heap.peek_top
Heap.peek_top :: (heap: &Heap) -> ? heap.T
Heap.remove
Heap.remove :: macro (heap: &Heap, cond: Code) -> ? heap.T
Heap.remove_top
Heap.remove_top :: (heap: &Heap) -> ? heap.T