DEV Community

Discussion on: 5 Powerful Programming Languages to Stretch Your Brain

Collapse
 
thepeoplesbourgeois profile image
Josh

Oh, I may be wrong on this, but I think you can clean up the fizzbuzz expression you wrote for Elixir, slightly... if you've already tried this and it came back with an error, please do let me know, because I'm actually curious and not near an iex prompt at the moment 😅

Enum.each(1..100, &IO.puts(&fizzbuzz))

# or possibly

1..100 |> Enum.map(&fizzbuzz) |> IO.puts
Collapse
 
jacobherrington profile image
Jacob Herrington (he/him)

I didn't write it, it's from a GitHub repo, but as soon as I'm back to my laptop I will write an Elixir FizzBuzz solution just for you 😉🤠

Thread Thread
 
thepeoplesbourgeois profile image
Josh

Ahh, that makes sense too 😅