FP Solution

From Marek Běhálek Wiki
Revision as of 10:14, 21 August 2020 by Beh01 (talk | contribs) (Replaced content with "<syntaxhighlight lang="Haskell"> fact1 :: Int -> Int fact1 0 = 1 fact1 n = n * fact1 (n-1) </syntaxhighlight>")
Jump to navigation Jump to search
fact1 :: Int -> Int
fact1 0 = 1
fact1 n = n * fact1 (n-1)