mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 09:23:52 -05:00
6 lines
114 B
Haskell
6 lines
114 B
Haskell
module Example where
|
|
|
|
sumOverArray :: [Int] -> Int
|
|
sumOverArray (x:xs) = x + sumOverArray xs
|
|
sumOverArray [] = 0
|