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