JortSort: Difference between revisions
Content added Content deleted
(→{{header|Common Lisp}}: This not only scrambles the program's input (unwarranted side effect) but can yield false positives.) |
No edit summary |
||
Line 421: | Line 421: | ||
<lang>jortsort 1 2 3</lang> |
<lang>jortsort 1 2 3</lang> |
||
<pre>1 |
<pre>1 |
||
</pre> |
|||
=={{header|Julia}}== |
|||
<lang julia> |
|||
jortsort(A) = sort(A) == A |
|||
</lang> |
|||
{{out}} |
|||
<pre> |
|||
julia> jortsort([1, 2, 3]) |
|||
true |
|||
julia> jortsort([1, 4, 3]) |
|||
false |
|||
julia> jortsort(['a', 'b', 'c']) |
|||
true |
|||
julia> jortsort(['a', 'd', 'c']) |
|||
false |
|||
</pre> |
</pre> |
||