JortSort: Difference between revisions
Added 11l
m (added Category:Sorting) |
Alextretyak (talk | contribs) (Added 11l) |
||
Line 19:
If the arrays do not match (i.e. the original array was not sorted), the function returns '''false'''.
<br><br>
=={{header|11l}}==
{{trans|Python}}
<lang 11l>F jortsort(sequence)
R Array(sequence) == sorted(sequence)
F print_for_seq(seq)
print(‘jortsort(#.) is #.’.format(seq, jortsort(seq)))
print_for_seq([1, 2, 4, 3])
print_for_seq([14, 6, 8])
print_for_seq([‘a’, ‘c’])
print_for_seq(‘CVGH’)
print_for_seq(‘PQRST’)</lang>
{{out}}
<pre>
jortsort([1, 2, 4, 3]) is 0B
jortsort([14, 6, 8]) is 0B
jortsort([a, c]) is 1B
jortsort(CVGH) is 0B
jortsort(PQRST) is 1B
</pre>
=={{header|AArch64 Assembly}}==
|