RosettaCodeData/Task/Reverse-words-in-a-string/Zkl/reverse-words-in-a-string.zkl
2017-09-25 22:28:19 +02:00

17 lines
381 B
Text

text:=Data(0,String,
#<<<
"---------- Ice and Fire ------------
fire, in end will world the say Some
ice. in say Some
desire of tasted I've what From
fire. favor who those with hold I
... elided paragraph last ...
Frost Robert -----------------------");
#<<<
text.pump(11,Data,fcn(s){ // process stripped lines
s.split(" ").reverse().concat(" ") + "\n" })
.text.print();