method List.pop
Removes and returns the last element.
Example:
fn main() io {
var xs = [1, 2]
print("{xs.pop()} {xs.pop()} {xs.pop()}")
}Output
2 1 none
pub(api) var fn pop() -> T?Since. 1.0.0-beta
Returns
T?
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/collections.oxl:109