Kaya 0.5.2 reference for Prelude::List

List of functions and data types in Prelude

Prelude::List<a>

Constructors

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

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya