RosettaCodeData/Task/Move-to-front-algorithm/Zkl/move-to-front-algorithm-3.zkl

7 lines
201 B
Plaintext

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();