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