Rivoreo Source Code Repositories
src.rivoreo.one
/
compiler-explorer
/
7f0bc32ae4b2fe6c34300ef83d366a7e9c36cd5f
/
.
/
examples
/
haskell
/
default.hs
blob: 97106284db6383428963042bcd5592567e837b57 [
file
] [
log
] [
blame
] [
raw
]
module
Example
where
sumOverArray
::
[
Int
]
->
Int
sumOverArray
(
x
:
xs
)
=
x
+
sumOverArray xs
sumOverArray
[]
=
0