Move To Front Encode by clock

s$="0123456789":do:c$=chr$(peek(0)):n=instr(s$,c$):?n-1,"";:left$(s$,n)=left$(c$+s$,n)loop

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

download

return to the top page