~statianzo/sevenlangs

d5b423cd81d34b7a1f510865f1e01eeacae66e53 — Jason Staten 2 years ago 3e7228a
haskell: day1 start
2 files changed, 12 insertions(+), 0 deletions(-)

A haskell/all_even.hs
A haskell/stack.yaml
A haskell/all_even.hs => haskell/all_even.hs +12 -0
@@ 0,0 1,12 @@
module Main where
  allEven :: [Integer] -> [Integer]
  allEven [] = []
  allEven (h:t) = if even h then h:allEven t else allEven t

  -- >>> :t allEven
  -- allEven :: [Integer] -> [Integer]
  --

  main :: IO()
  main =
    print "yes"
\ No newline at end of file

A haskell/stack.yaml => haskell/stack.yaml +0 -0