Rivoreo Source Code Repositories
src.rivoreo.one
/
compiler-explorer
/
c2e9aabfd775349d2cc704761779671f87187465
/
.
/
examples
/
nim
/
Sum_over_array.nim
blob: fe55708d70455548fd9af0d318dc75376144bcbe [
file
] [
log
] [
blame
] [
raw
]
# For best results compile with -d:danger
proc sumArray
(
data
:
seq
[
int
]):
int
{.
exportc
.}
=
for
elem
in
data
:
result
+=
elem