mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-28 06:47:08 -05: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
|