diff --git a/e1.hs b/e1.hs new file mode 100644 index 0000000..b533c64 --- /dev/null +++ b/e1.hs @@ -0,0 +1,6 @@ +divisors_3_5 [] acc = acc +divisors_3_5 (x:xs) acc + | rem x 3 == 0 || rem x 5 == 0 = divisors_3_5 xs (x:acc) + | otherwise = divisors_3_5 xs acc + +e1 = sum (divisors_3_5 [1 .. 999] []) diff --git a/erlang.txt b/erlang.txt new file mode 100644 index 0000000..d6a0c59 --- /dev/null +++ b/erlang.txt @@ -0,0 +1,3 @@ +erl +c(filename) +module:function diff --git a/haskell.txt b/haskell.txt new file mode 100644 index 0000000..f7efb72 --- /dev/null +++ b/haskell.txt @@ -0,0 +1,3 @@ +hugs +:load file +fn