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