Rivoreo Source Code Repositories
src.rivoreo.one
/
compiler-explorer
/
8daa6ebebea40e9d00209e6590bc62de84a7384c
/
.
/
examples
/
ocaml
/
sum.ml
blob: a7d962c5cc05aab9991d759115bd4ccf4e99eaba [
file
] [
log
] [
blame
] [
raw
]
let
sum l
=
let
rec
sum' acc
=
function
|
[]
->
acc
|
x
::
tl
->
sum'
(
acc
+
x
)
tl
in
sum'
0
l