Adds val to buf by appending it and adjusting it up the heap.
The heap to modify. This parameter is marked 'ref' because buf.length will be altered.
The element to push onto buf.
The evaluation predicate, which should return true if e1 is less than e2 and false if not. This predicate may be any callable type.
See Implementation
Adds val to buf by appending it and adjusting it up the heap.