Skip to main content

Module vec

Module vec 

Source
Expand description

Vec<T>, whose model is the array of its elements.

Functionsยง

all
any
append
back
empty
filter
find
foldl
get
get_or
The element at index, or fallback, which is copied only if it is the answer.
index
The element at index, which Lean has a proof is there.
map
of_array
pop
push
reverse
set
size
to_array
A Lean array crosses as a Vec, so both directions are the value itself: what converts each element is the conversion of the array.
truncate