RosettaCodeData/Task/Move-to-front-algorithm/AutoHotkey/move-to-front-algorithm-2.ahk

6 lines
194 B
AutoHotkey

testStrings = broood,bananaaa,hiphophiphop
loop, parse, testStrings, `,
Output .= A_LoopField "`t" MTF_Encode(A_LoopField) "`t" MTF_Decode(MTF_Encode(A_LoopField)) "`n"
MsgBox % Output
return