Top 1,000 Features Creators Events Podcasts Extensions Interviews Blog Explorer CSV

Lists

< >
Example from 1 languages: JavaScript
const list = [1,2,3]
Example from 2 languages: Python, Speedie
myList = [1, 2, 3, 4, 5]
Example from 1 languages: JSON
[1, 2, 3]
Example from 1 languages: Go
myList := []int{1, 2, 3}
Example from 1 languages: Lua
myList = {1, 2, 3}
Example from 1 languages: Elixir
my_list = [1, 2, 3, 4, 5]
Example from 2 languages: REBOL, Boron
my-list: [1 two 3.0 "four"]
Example from 1 languages: Lil
emptyList = ()
Example from 1 languages: SAKO
TABLICA(4): B 1 2.0 3.4 4.1 5.6 *
Example from 1 languages: Uniform eXchange Format
[1 2]
Example from 1 languages: Bel
; here is a list of a, b, and c: (a . (b . (c . nil))) ; can be written as (a b c)
Example from 1 languages: Wax
(let x (arr (vec 3 float)))
Example from 1 languages: Ion
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
Example from 1 languages: BALGOL
ARRAY MONTHDAYS(12) = (31,28,31,30,31,30,31,31,30,31,30,31)$
*

Languages with Lists include JavaScript, Python, JSON, Go, Lua, Elixir, GraphQL, EDN, Janet, REBOL, Lil, SAKO, Uniform eXchange Format, fp, Speedie, Aardvark, Bel, Wax, 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.

View source

- Build the next great programming language About Resources Acknowledgements Part of the World Wide Scroll