Working with Lists

In the previous section, we introduced list literals. Now we’ll go over some of the ways you can use lists in your code, using functions from the standard library.

[]

[1, 2, 3]

[true, false, true, true]

[
  [1, 0, 0],
  [0, 1, 0],
  [0, 0, 1],
]

map, filter, zip_with, fold_right, fold_left

results matching ""

    No results matching ""