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