JortSort: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: added syntax colouring, marked p2js compatible) |
|||
Line 390: | Line 390: | ||
Outputs:<pre>0 |
Outputs:<pre>0 |
||
1</pre> |
1</pre> |
||
=={{header|BQN}}== |
|||
BQN has a really simple way to represent JortSort: |
|||
<lang bqn> JSort ← ≡⟜∧ |
|||
JSort 3‿2‿1 |
|||
0</lang> |
|||
Which means "Does the array match itself sorted?" |
|||
Another equivalent function is <code>⊢≡∧</code>. |
|||
=={{header|C}}== |
=={{header|C}}== |