kc3-lang/kc3/doc/1 KC3/1.5 List.en.md

Download

5 List

Linked lists owning the data (each node contains a couple of tags : one for data and one for next pointer.

Regular lists can be :

Regular lists end with the empty list : [1] == [1 | []].

You can also contruct dotted lists like in Common Lisp where the next list pointer is an arbitrary form. E.g. :

All these list formats are supported in pattern matching.

5.1 Functions

List List.map (List, Fn)
List List.reverse (List)

Source

Download