published: 29th of January 2021
Lists are a sequence of values that are enclosed with square brackets [] .
Lists in Elixir are actually stored in memory as linked lists. Each element holds both its value and a pointer to the next element.
# Define a list
list = [1, 2, 3]
https://elixir-lang.org/getting-started/basic-types.html
https://elixir-lang.org/crash-course.html#data-types
https://learning.oreilly.com/library/view/elixir-in-action/9781617295027/c02.xhtml