Order two numerical lists: Difference between revisions
Content added Content deleted
m ({{out}}) |
(Nimrod -> Nim) |
||
Line 744: | Line 744: | ||
{ A < B -> S = "yes" ; S = "no" }.</lang> |
{ A < B -> S = "yes" ; S = "no" }.</lang> |
||
=={{header| |
=={{header|Nim}}== |
||
<lang |
<lang nim>proc `<`[T](a, b: openarray[T]): bool = |
||
for i in 0 .. min(a.len, b.len): |
for i in 0 .. min(a.len, b.len): |
||
if a[i] < b[i]: return true |
if a[i] < b[i]: return true |