const list = [1,2,3]myList := []int{1, 2, 3}[1, 2, 3]myList = {1, 2, 3}my_list = [1, 2, 3, 4, 5]let numbers = [1, 2, 3, 4, 5]myList:(1,2,3)
end(let x (arr (vec 3 float)))TABLICA(4): B
1 2.0 3.4
4.1 5.6
*3 0 1 2 # Example: face definition with vertex indices; here is a list of a, b, and c:
(a . (b . (c . nil)))
; can be written as
(a b c)[1 2]null.list // A null list value
[] // An empty list value
[1, 2, 3] // List of three ints
[ 1 , two ] // List of an int and a symbol
[a , [b]] // Nested list
[ 1.2, ] // Trailing comma is legal in Ion (unlike JSON)
[ 1, , 2 ] // ERROR: missing element between commasARRAY MONTHDAYS(12) = (31,28,31,30,31,30,31,31,30,31,30,31)$Languages with Lists include JavaScript, Python, Go, JSON, Lua, Elixir, GraphQL, Gleam, EDN, Janet, Lil, REBOL, Wax, fp, SAKO, Aardvark, PLY, Speedie, Object File Format, Bel, Boron, Uniform eXchange Format, Ion, hecl, BALGOL
Languages without Lists include progsbase, mmCIF
View all concepts with or missing a hasLists measurement
Read more about Lists on the web: 1.