Rivoreo Source Code Repositories
src.rivoreo.one
/
compiler-explorer
/
5fa4189dbecec95c7829174b9e6e2fde91af3bc1
/
.
/
examples
/
clean
/
Sum_over_array.icl
blob: 06ca639e3edfcabaa6b3c55af2b9c8af0de14a6a [
file
] [
log
] [
blame
] [
raw
]
module
example
import
StdInt
sumOverArray
::[
Int
]
->
Int
sumOverArray
[
x
:
xs
]
=
x
+
sumOverArray xs
sumOverArray
[]
=
0
Start
=
sumOverArray
[
1
,
3
,
4
]