Today I woke up thinking: "What's that programming puzzle everyone can do and the goal is do it in one line... oh yeah FizzBuzz"
So I re-wrote it again in Haskell! Take a look:
This is by far not pro Haskell code, but gives you an idea how cool list comprehensions are in this magical language ;-).
To see how this run (in case you don't have a Haskell interpreter handy, you can go here: http://codepad.org/qy0c7CdP

0 comments:
Post a Comment