lists are used to store an ordered collection of values of the same type, and can be taken from group literals. Lists can be fixed size or variable size
The type of a list is determined by the first value in the literal or
strings are a form of lists with character values
entry
(1) [value]->[value]
(1) A pair of value (first) to value (second). More may be chained on by \[value] combinations
collection
#[list]
returns the number of elements in [list]
[list]+[list]
returns the concatenation of the two lists
[list]+[element]
returns the list with [element] appended at the end
[list]-[element]
returns the list with the last occurrence of [element] removed
[list]*[number]
repeats the elements of [list] [number] times
[list]*[number]
returns a list with the elements of [list] repeated [number] times
|[list]|
returns the norm (square root of the sum of all the squares) of the elements in [list]
[list]=[list]
returns whether all elements are equivalent in both lists
[list]!=[list]
returns whether any element is not equivalent in both lists
[list][[number]]
returns the element that is [number] into the list (starting from 0)
[element] in [list]
returns whether [element] is contained in the list
keeps:
[variable]=[value]
[variable]==[value]
[value]<<[value]