Move-to-front algorithm: Difference between revisions

Content added Content deleted
No edit summary
Line 1,410: Line 1,410:


To extract information to clipboard we use global variables, is handy;
To extract information to clipboard we use global variables, is handy;

Number pop a number from stack of values, if no number found then raise error.


<lang M2000 Interpreter>
<lang M2000 Interpreter>
Line 1,451: Line 1,453:
Sub TryThis(a$)
Sub TryThis(a$)
Local Out$=Encode$(a$)
Local Out$=Encode$(a$)
Local final$=Decode$(Out$ )
Local final$=Decode$(Out$)
Print final$
Print final$
End Sub
End Sub