Inspired by http://dave.fayr.am/posts/2012-10-4-finding-fizzbuzz.html Rules are in a list of lambdas that can be easily modified. A pattern-matching recursive function applies them in the correct order.
7 people like thisPosted: 12 years ago by Richard Broida
Lazily generate fizzbuzz results and provide a test function. Parameterize the inputs and predicates.
1 people like thisPosted: 10 years ago by Ryan Riley
Yet Another Fizz Buzz (YAFB)
8 people like thisPosted: 8 years ago by @Functional_S
This version of FizzBuzz uses forward composition instead of recursive pattern matching (see http://fssnip.net/e7). All the rules, including the default case, are in a list of lambdas that can be easily modified. The function executeRules composes the list into a single rule and executes it.
0 people like thisPosted: 12 years ago by Richard Broida
FizzBuzz using Active Patterns.
7 people like thisPosted: 9 years ago by Nathan Smith