mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 10:33:59 -05:00
10 lines
151 B
Plaintext
10 lines
151 B
Plaintext
module example
|
|
|
|
import StdInt
|
|
|
|
sumOverArray::[Int] -> Int
|
|
sumOverArray [x:xs] = x + sumOverArray xs
|
|
sumOverArray [] = 0
|
|
|
|
Start = sumOverArray [1,3,4]
|