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
*
[1 2]
; here is a list of a, b, and c:
(a . (b . (c . nil)))
; can be written as
(a b c)
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 commas
ARRAY 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, Uniform eXchange Format, Aardvark, Speedie, Bel, Boron, Ion, hecl, BALGOL
Languages without Lists include progsbase
View all concepts with or missing a hasLists measurement
Read more about Lists on the web: 1.