May 5, 2011

FizzBuzz in Haskell

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

disclaimer



Things written in this blog are my personal thoughts or points of view, and do not represent at all the position of my employer.

Code in the website is licensed under The MIT License

Content of this blog is:
Creative Commons License
Licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.