Last active
December 6, 2015 13:16
-
-
Save vlad-bezden/6e35bba484dccab2eca1 to your computer and use it in GitHub Desktop.
Factorial implementation in F# using reduce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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