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