Demo entry 6353518

Factorial function

   

Submitted by anonymous on Apr 01, 2017 at 04:25
Language: Haskell. Code size: 57 Bytes.

fact :: Integer -> Integer
fact n = foldr (*) 1 [1..n]

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).