Quartz v5.25

vec

Functions

vec_first(): Option<Int> (std/vec.qz:7)

Standard Vec Utilities

Pure Quartz functions extending Vec with Option-returning accessors and higher-order collection operations. Return the first element, or None if empty.


vec_last(): Option<Int> (std/vec.qz:15)

Return the last element, or None if empty.


vec_map(): Vec<Int> (std/vec.qz:23)

Apply f to each element, return a new Vec with the results.


vec_filter(): Vec<Int> (std/vec.qz:33)

Return a new Vec containing only elements matching the predicate.