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