• glitches_brew@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    11 months ago

    Elixir does have for loops.

    for n \<- 1..5 do
      n * 2
    end
    # => [2, 4, 6, 8, 10]
    

    That being said, I have worked at a company who uses Elixir 4 years now and I have never once written one.