FizzBuzzes in Julia

I came across Gerald Benischke's post on FizzBuzz without if clauses, which inspired me to play around with FizzBuzz in Julia. My attempts aren't nearly as interesting, since they all do feature at least one if clause, but they were still fun to work on. The first attempt is a naïve implementation of FizzBuzz. It's easy to read and it works well enough, but I don't like the fact that there's an explicit case for printing "fizzbuzz"—both the condition and the executed statement are redundant....

March 8, 2021