method List.last
The last element or none.
Example:
fn main() io {
print("{[7, 8].last()}")
}Output
8
pub(api) fn last() -> T?Since. 1.0.0-beta
Returns
T?
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/collections.oxl:432