Skip to content

Instantly share code, notes, and snippets.

@vlad-bezden
Last active December 6, 2015 13:16
Show Gist options
  • Save vlad-bezden/6e35bba484dccab2eca1 to your computer and use it in GitHub Desktop.
Save vlad-bezden/6e35bba484dccab2eca1 to your computer and use it in GitHub Desktop.
Factorial implementation in F# using reduce
let factorial n =
[1..n] |> List.reduce (*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment