RosettaCodeData/Task/Move-to-front-algorithm/Zkl/move-to-front-algorithm-3.zkl
2023-07-01 13:44:08 -04:00

6 lines
201 B
Text

texts:=T("broood","bananaaa","hiphophiphop");
out:=texts.apply(encode);
texts.zipWith(fcn(t,e){ println(t,"-->",e) },out);
out.apply(decode).println();
texts.zipWith('==,out.apply(decode)).println();