Sorting algorithms/Patience sort: Difference between revisions
Content deleted Content added
m →{{header|REXX}}: changed alignment of comments. |
m →{{header|REXX}}: changed whitespace. |
||
Line 1,432: | Line 1,432: | ||
$= $ _ /*add to the output thingy ($) list. */ |
$= $ _ /*add to the output thingy ($) list. */ |
||
!.p= !.p + 1 /*bump the thingy pointer in pile P. */ |
!.p= !.p + 1 /*bump the thingy pointer in pile P. */ |
||
end |
end /*k*/ /* [↑] each iteration finds a low item*/ |
||
/* [↓] string $ has a leading blank.*/ |
/* [↓] string $ has a leading blank.*/ |
||
say 'output: ' strip($) /*stick a fork in it, we're all done. */</lang> |
say 'output: ' strip($) /*stick a fork in it, we're all done. */</lang> |