JortSort: Difference between revisions

no edit summary
(→‎{{header|Common Lisp}}: This not only scrambles the program's input (unwarranted side effect) but can yield false positives.)
No edit summary
Line 421:
<lang>jortsort 1 2 3</lang>
<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>
 
Anonymous user