Anonymous user
Best shuffle: Difference between revisions
m
→{{header|REXX}}: further indented a DO loop.
m (→{{header|REXX}}: elided the need for a B variable in the function.) |
m (→{{header|REXX}}: further indented a DO loop.) |
||
Line 2,684:
x=overlay(y, overlay(a,x, lastpos(y,x)),j+1) /*fast swap of 2 characters*/
end /*j*/
do k=1 for L; a=substr(x,k,1) /*handle a possible rep. */
if
end
return x</lang>
'''output''' (with a freebie thrown in):
|