Next: , Previous: , Up: binary heaps   [Index]


39.2 Inspecting heap objects

The following bindings are exported by the library (vicare containers binary-heaps). The bindings whose name is prefixed with $ are unsafe operations: they do not validate their arguments before accessing them.

Function: binary-heap-empty? heap
Function: $binary-heap-empty? heap

Return #t if heap is empty; otherwise return #f.

Function: binary-heap-not-empty? heap
Function: $binary-heap-not-empty? heap

Return #t if heap is not empty; otherwise return #f.

Function: binary-heap-size? heap
Function: $binary-heap-size? heap

Return a non–negative fixnum representing the number of objects in heap.