DoxigAlpha

getLast

Return the last element from the list. Asserts that the list is not empty.

Function parameters

Parameters

#

Deprecated.

Functions

#
Managed
Deprecated.
AlignedManaged
Deprecated.
Aligned
A contiguous, growable list of arbitrarily aligned items in memory.

Source

Implementation

#
pub fn getLast(self: Self) T {
    const val = self.items[self.items.len - 1];
    return val;
}