Struct ocaml::List [−][src]
pub struct List(_);
OCaml list type
Methods
impl List
[src]
impl List
pub fn new() -> List
[src]
pub fn new() -> List
Create a new OCaml list
pub fn len(&self) -> Size
[src]
pub fn len(&self) -> Size
List length
pub fn push_hd(&mut self, v: Value)
[src]
pub fn push_hd(&mut self, v: Value)
Add an element to the front of the list
pub fn hd(&self) -> Option<Value>
[src]
pub fn hd(&self) -> Option<Value>
List head
pub fn tl(&self) -> Value
[src]
pub fn tl(&self) -> Value
List tail
Trait Implementations
impl From<List> for Value
[src]
impl From<List> for Value
impl From<Value> for List
[src]
impl From<Value> for List
impl<R: AsRef<[Value]>> From<R> for List
[src]
impl<R: AsRef<[Value]>> From<R> for List