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