PLDB
Languages Features Calendar About Lists Add Language
GitHub icon

Lists

Lists

Lists are a language feature.

A list or sequence is an abstract data type that represents a countable number of ordered values, where the same value may occur more than once

Languages with Lists include JavaScript, Python, Go, JSON, GraphQL, EDN, Ion

Example from JavaScript:

const list = [1,2,3]

Example from Python:

myList = [1, 2, 3, 4, 5]

Example from Go:

myList := []int{1, 2, 3}

Example from JSON:

[1, 2, 3]

Example from 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

Article source

PLDB - Build the next great programming language. v5.0.0 - Acknowledgements · Email · GitHub