DoxigAlpha

peekMin

Look at the smallest element in 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 peekMin(self: *Self) ?T {
    return if (self.len > 0) self.items[0] else null;
}