Loops
7 min · Elixir
Repeat work by walking over a range.
Elixir · Loops0/5 cleared
Enemy 1 of 5
Elixir has no counter loop — instead you walk a collection. Enum.each runs a function for each value. The range 0..2 covers 0, 1, 2.
You
Pincer Crab
Loading editor...
Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: 0
1
2