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