mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 12:54:00 -05:00
* Add more Nim examples * Newlines :P * Replace it with openArray * Remove march, seq * fix typo
6 lines
167 B
Nim
6 lines
167 B
Nim
# For best results compile with -d:danger
|
|
proc maxArray(x: var seq[float], y: seq[float]) {.exportc.} =
|
|
for i in 0 ..< x.len:
|
|
if y[i] > x[i]:
|
|
x[i] = y[i]
|