JortSort: Difference between revisions
Content added Content deleted
Keithpinson (talk | contribs) |
m (→{{header|J}}: clarify the possibilities a little) |
||
Line 801: | Line 801: | ||
'''Solution''' |
'''Solution''' |
||
<lang J> |
<lang J> jortsort=: -: /:~</lang> |
||
More in line with the spirit of the task would be: |
More in line with the spirit of the task would be: |
||
Line 810: | Line 810: | ||
'''Example Usage''' |
'''Example Usage''' |
||
<lang J> |
<lang J> jortsort 1 2 4 3 |
||
0 |
0 |
||
jortsort 'sux' |
|||
1 |
1 |
||
jortsort&> 1 2 4 3;14 6 8;1 3 8 19;'ac';'sux';'CVGH';'PQRST' |
|||
0 0 1 1 1 0 1</lang> |
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}}== |
=={{header|Janet}}== |