RosettaCodeData/Task/Reverse-words-in-a-string/TXR/reverse-words-in-a-string-2.txr
2015-11-18 06:14:39 +00:00

13 lines
208 B
Text

@(collect)
@ (some)
@(coll)@{words /[^ ]+/}@(end)
@ (or)
@(bind words nil)
@ (end)
@(end)
@(set words @(mapcar (fun nreverse) words))
@(output)
@ (repeat)
@(rep)@words @(last)@words@(end)
@ (end)
@(end)