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