Jump to content

Sorting algorithms/Cocktail sort with shifting bounds: Difference between revisions

m
→‎{{header|REXX}}: elided part of a comment from the REXX section header.
(→‎{{header|Raku}}: Add a Raku example)
m (→‎{{header|REXX}}: elided part of a comment from the REXX section header.)
Line 310:
 
=={{header|REXX}}==
This REXX version can handle array elements that may contain blanks or spaces,  .
<br>and uses an improved algorithm that uses &nbsp; ''shifting bounds''.
<lang rexx>/*REXX program sorts an array using the cocktail─sort method with shifting bounds. */
call gen /*generate some array elements. */
Cookies help us deliver our services. By using our services, you agree to our use of cookies.