Rivoreo Source Code Repositories
src.rivoreo.one
/
compiler-explorer
/
b3f50c875c80333e1e7f7f71b2a753202ee7032f
/
.
/
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
]