2 ms·
For 0 being a FizzBuzz you can `cons` a "FizzBuzz" to the start of the list fizzbuzz = "FizzBuzz" : zipWith... To make negative numbers work you'd need a ne
by D7x7w9pHnT 5y ago
For 0 being a FizzBuzz you can `cons` a "FizzBuzz" to the start of the list
fizzbuzz = "FizzBuzz" : zipWith...
To make negative numbers work you'd need a new numbers definition
numbers = map show [-1, -2..]
Should yield all the negative integers eventually.
I've never heard of FizzBuzz defined for complex/imaginary/2-d numbers.
That's interesting to consider, I'll be thinking about this for a while