List::to_vec
pub fn to_vec() -> Vec<T> Import
Source: use collections::list::{List}; src/collections/list.hy Returns the values front to back as a new Vec.
Called on a List value as value.to_vec(…).
Returns#
Vec<T>
Contracts#
Checked according to --contracts (see Contracts).
ensures result.len() == self.len
See also#
VecList: A singly-linked list with constant-time push and pop at the front.List::new: Creates an empty list.List::size: Returns the number of values.List::is_empty: Returnstruewhen the list has no values.List::push_front: Addsvat the front.List::push_back: Addsvat the back.List::peek_front: Returns the front value without removing it, orNonewhen the list is empty.