Skip to content

Instantly share code, notes, and snippets.

@vgaltes
Created April 24, 2015 11:21
Show Gist options
  • Select an option

  • Save vgaltes/310108e02557af31750e to your computer and use it in GitHub Desktop.

Select an option

Save vgaltes/310108e02557af31750e to your computer and use it in GitHub Desktop.
FSharp FizzBuzz Kata - refactoring using currying
let fizzBuzz input =
if List.exists ((=) input) [3; 6] then "Fizz"
elif input = 5 then "Buzz"
else input.ToString()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment