Anonymous user
Best shuffle: Difference between revisions
m
→{{header|REXX}}: elided the need for a B variable in the function.
(→{{header|REXX}}: elided a function, changed the bestShuffle function, added/changed whitespace and comments.) |
m (→{{header|REXX}}: elided the need for a B variable in the function.) |
||
Line 2,685:
end /*j*/
do k=1 for L; a=substr(x, k,
if a\==
if k==L then x=left(x, k-2)a || substr(x, k-1, 1) /*last case.*/
else x=left(x, k-1)substr(x, k+1, 1)a || substr(x, k+2)
|