rvirding/lfe — pull request #40 by mankyKitty (2013-09-05 16:03:34+00:00)
Title: Add fizzbuzz example

A not terribly extensible solution to the FizzBuzz problem. However it does show some examples of pattern matching, guards, recursion and use of some of the higher order functions in the lists module.

The final function (fizzbuzz:buzz2/1) seems to print some funky results when used in the REPL. They appear correct as it does look like a result of multiple 'cons' operations on a list, and the values themselves are correct.

Now doubt I've missed something. :)

Reproduce using the following:
> (c '"fizzbuzz")
{ok, fizzbuzz}
> (: fizzbuzz buzz2 (: lists seq 1 15))