Move To Front Encode by pooq

t$="0123456789"
do
a$=chr$(peek(0))
i=instr(t$,a$)-1
?i,"";
t$=a$+mid$(t$,1,i)+mid$(t$,i+2)loop

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page