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