Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Polyglot FizzBuzz excercise
Clojure Ruby Haskell Racket F# Python Other
Branch: master
Failed to load latest commit information.
BartJongejan+bracmat Added Bracmat
bryan_hunter+erlang First commit
calebpagel+clojure Tidying up code
calvinb+haskell Added another Haskell version, using the type system and functors.
calvinb+scheme Replaced underscores with hyphensin names.
drewr+clojure Add instructional comment.
kimsk+fsharp fsharp newbie solution :-)
luketopia+fsharp Add some F# solutions
mrobertsdev+elixir Removed temp file
mspspeak+racket Simple Racket 101 Week 4 or 5, almost Streams
niftyn8+ruby Property based testing in Ruby whaaa?
niftyn8+rust Fizzbuzz in Rust
phillipscaleb+clojure Added a clj version based on haskell solution from prag prog mag
scrogson+rust FizzBuzz in Rust with tests!
vinbarnes+ruby add fizzbuzz ruby solution
wilkesj+nodejs move wilkes' code left on the floor of the living room to appropriate… Update

NashFP polyglot fizzbuzz exercise

FizzBuzz was popularized in programming circles by this post from Jeff Atwood

The idea is you count from 1 to 100. If the number is evenly divisible by 3 you say "Fizz" instead of the number. If the number is evenly divisible by 5 you say "Buzz" instead of the number. If the number is evenly divisible by both 3 and 5 you say "FizzBuzz" instead of the number.

So the numbers from 1 to 20 would be read like so: 1,2,Fizz,4,Buzz,Fizz,7,8,Fizz,Buzz,11,Fizz,13,14,FizzBuzz,16,17,Fizz,19,Buzz

Contribute your solution by adding a folder name {your twitter handle}+{your language} such as "bryan_hunter+erlang".


Something went wrong with that request. Please try again.