removeMaxOrNull
Pop the largest 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 removeMaxOrNull(self: *Self) ?T {
return if (self.len > 0) self.removeMax() else null;
}