RosettaCodeData/Task/Move-to-front-algorithm/Zkl/move-to-front-algorithm-3.zkl
2017-09-25 22:28:19 +02: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();