In Elixir, how can a range be converted to a list? March 9, 2023 by Tarik Enum.to_list/1 is what you’re looking for: iex(3)> Enum.to_list 1..10 [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]