Jump to content

Order two numerical lists: Difference between revisions

(→‎{{header|Kotlin}}: More condensed version)
Line 1,193:
55 53 1 before 55 62 83 = True
20 40 51 before 20 17 78 34 = False</pre>
 
=={{header|Phix}}==
Handled natively, eg
<lang Phix>?{1,2,3}<{1,2,3,4} -- 1
?{1,2,3,4}<{1,2,3} -- 0
?{1,2,4}<{1,2,3} -- 0
?{1,2,3}<{1,2,3} -- 0
?{1,2,3}<{1,2,4} -- 1</lang>
Elements can be any mix of integers, floating point numbers, strings, or nested subsequences, with atoms ordered before sequences.<br>
If you want -1/0/+1 (instead of the true(1)/false(0) shown above), use the builtin compare() function.
 
=={{header|PicoLisp}}==
7,820

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.