Pike v8.1 release 6

Method ADT.Heap()->push()


Method push

Element push(mixed value)

Description

Push an element onto the heap. The heap will automatically sort itself so that the smallest value will be at the top.

Returns

Returns an element handle, which can be used with adjust() and remove().

See also

pop(), remove()