Order two numerical lists: Difference between revisions

m
m (→‎{{header|Wren}}: Changed to Wren S/H)
 
(One intermediate revision by the same user not shown)
Line 1,057:
FALSE
TRUE</pre>
 
=={{header|EasyLang}}==
{{trans|C}}
<syntaxhighlight>
func listcmp a[] b[] .
for i to lower len a[] len b[]
if a[i] < b[i]
return -1
elif a[i] > b[i]
return 1
.
.
if len a[] < len b[]
return -1
elif len a[] > len b[]
return 1
.
return 0
.
print listcmp [ 2 4 5 ] [ 2 3 1 ]
print listcmp [ 2 3 1 ] [ 2 3 1 ]
print listcmp [ 2 3 1 ] [ 2 3 1 3 ]
</syntaxhighlight>
 
=={{header|Ela}}==
Line 1,066 ⟶ 1,089:
 
[1,2,1,3,2] <. [1,2,0,4,4,0,0,0]</syntaxhighlight>
 
 
=={{header|Elixir}}==
2,083

edits