Order two numerical lists: Difference between revisions
no edit summary
(→{{header|AppleScript}}: Added iterative implementation.) |
No edit summary |
||
Line 1,499:
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|Phixmonti}}==
{{trans|Phix}}
<lang Phixmonti>include Utilitys.pmt
def ? print nl enddef
( 1 2 3 ) ( 1 2 3 4 ) < ?
( 1 2 3 4 ) ( 1 2 3 ) < ?
( 1 2 4 ) ( 1 2 3 ) < ?
( 1 2 3 ) ( 1 2 3 ) < ?
( 1 2 3 ) ( 1 2 4 ) < ?</lang>
=={{header|PicoLisp}}==
|