Ranges represent a sequence of one or many consecutive integers. They:
.. operator and can be both ascending or descending.1, but can be modified using the ..// operator (since Elixir 1.12)....Enum.to_list/1 or Enum.map/2.Enum.to_list(9..1)
# => [9, 8, 7, 6, 5, 4, 3, 2, 1]
Enum.map(?A..?F, &<<&1>>)
["A", "B", "C", "D", "E", "F"]