mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-05-16 13:43:10 -04:00
* Add more Nim examples * Newlines :P * Replace it with openArray * Remove march, seq * fix typo
5 lines
131 B
Nim
5 lines
131 B
Nim
# For best results compile with -d:danger
|
|
proc sumArray(data: seq[int]): int {.exportc.} =
|
|
for elem in data:
|
|
result += elem
|