JortSort: Difference between revisions

m
→‎{{header|J}}: clarify the possibilities a little
m (→‎{{header|J}}: clarify the possibilities a little)
Line 801:
 
'''Solution'''
<lang J> jortSortjortsort=: -: /:~</lang>
 
More in line with the spirit of the task would be:
Line 810:
 
'''Example Usage'''
<lang J> jortSortjortsort 1 2 4 3
0
jortSortjortsort 'sux'
1
jortSortjortsort&> 1 2 4 3;14 6 8;1 3 8 19;'ac';'sux';'CVGH';'PQRST'
0 0 1 1 1 0 1</lang>
 
Using jortSort in place of jortsort would throw an error on all but the first of those examples. It would return an empty result for that first example.
 
=={{header|Janet}}==
6,962

edits