ref: bf23440e3fa1cbee7e90d5e40b88406e47f478c4
dir: /Example.hs/
module Example(main) where
import Prelude
fac :: Int -> Int
fac 0 = 1
fac n = n * fac(n - 1)
main :: IO ()
main = do
let
rs = map fac [1,2,3,10]
putStrLn "Some factorials"
print rs