aboutsummaryrefslogtreecommitdiff
path: root/examples/haskell/default.hs
blob: 97106284db6383428963042bcd5592567e837b57 (plain)
1
2
3
4
5
module Example where

sumOverArray :: [Int] -> Int
sumOverArray (x:xs) = x + sumOverArray xs
sumOverArray [] =  0