kc3-lang/kc3/doc/list.md

Download

Module List

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.

Functions

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

Source

Download