Skip to content

Commit

Permalink
Remove some junk
Browse files Browse the repository at this point in the history
  • Loading branch information
lennart-augustsson-epicgames committed Feb 15, 2024
1 parent e3c1cb7 commit 8693a06
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Example.hs
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
module Example(fac, main) where
import Prelude

fac :: Int -> Int
fac 0 = 1
fac n = n * fac(n - 1)

main :: IO ()
main = do
--putStrLn $ "word size=" ++ show _wordSize ++ ", os=" ++ if _isWindows then "Windows" else "Unix-like"
let
rs = map fac [1,2,3,10]
let rs = map fac [1,2,3,10]
putStrLn "Some factorials"
print rs

0 comments on commit 8693a06

Please sign in to comment.