n ways to FizzBuzz in Clojure by Aditya Athalye #FnConf 2022
Channel: ConfEngine
Date: 2022-03-26

FizzBuzz is back in fashion! Everybody is doing it again (and again, and again). So I figured why should I miss out on the action?
Why not use (and abuse) as many features as possible, of my favourite FP language Clojure, to FizzBuzz in as many ways as I can possibly muster?
Why not up the ante by leaking the four other ways I discovered so far? And why not make it harder on myself by committing to spectacular public failure if I can't find more? Why. Not?!
So here we are...
(def range-of-fizzbuzzees (range 1 101))
(def fizbuzz map)
(= (fizzbuzz canonical-fizbuzzer
             range-of-fizzbuzees)
   (fizzbuzz or-fizbuzzer
             range-of-fizzbuzees)
   (fizzbuzz juxt-fizbuzzer
             range-of-fizzbuzees)
   (fizzbuzz lookup-fizbuzzer
             range-of-fizzbuzees)
   (fizzbuzz (fn [f n] (f n))
             cyclical-fizbuzzer
             range-of-fizzbuzees))
The chase has begun! Who knows what will happen?
WITNESS ME.

More details: https://confengine.com/conferences/functional-conf-2022/proposal/16200

Conference Link: https://www.functionalconf.com