Collections

Operations on vector<T> — the primary ordered collection type. Vectors are grown by appending with += and elements are accessed by index. All structures are passed by reference instead of by value

pub fn len(both: vector) -> integer

Number of elements in the vector. Use in loop bounds: for i in 0..v.len().

pub fn clear(both: vector)

Remove all elements from the vector, setting its length to 0.