DoxigAlpha

removeMinOrNull

Pop the smallest element from the dequeue. Returns null if empty.

Function parameters

Parameters

#
self:*Self

Priority Dequeue for storing generic data.

Functions

#
PriorityDequeue
Priority Dequeue for storing generic data.

Source

Implementation

#
pub fn removeMinOrNull(self: *Self) ?T {
    return if (self.len > 0) self.removeMin() else null;
}