List of functions and data types in Prelude
Prelude::List<a>
Constructors
- nil()
- cons(a head,Prelude::List<a> tail)
Usage
nil creates an empty list, cons creates a non empty list. Linked lists may be iterated over using a for loop.
list = cons(2,cons(5,cons(3,nil)));
Related