3 ms·
You can sort of loop in Elixir eg. Enum.map(1..100, &IO.puts/1) prints the numbers 1 to 100
by tim333 8y ago
You can sort of loop in Elixir eg.
Enum.map(1..100, &IO.puts/1)
prints the numbers 1 to 100
- xtian 8y agoWell, there is also a `for` construct: for i <- 1..100, do: IO.puts(i) I guess what people mean is that that’s an abstraction over function calls?