array literal
Last updated at 6:07 am UTC on 9 May 2018
- The array literal delimiters are "#(", "(", and ")"
- The "#(" delimiter is used to introduce the top level of an array literal
- The "(" delimiter is used to introduce array literals nested within an array
- The elements of the array literal may be literals or Reserved identifiers (as long as they are only from the set of [nil, true, false]).
- The array literal may be empty, that is, contain no elements - #()
Examples
#(1 2 3 4)
#( )
#((1 2 3)(3 4 5) 5)
Compare with:
{{1 . 2 . 3}.{3 . 4 . 5} . 5}
Using curly braces (run time evaluated collections)