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

7 lines
201 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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();