Changing variables in a loop

or simply :slight_smile:

current_list = Enum.reduce(1..10, [], fn x, acc ->
  [x | acc]
end)