RosettaCodeData/Task/Reverse-words-in-a-string/Pluto/reverse-words-in-a-string.pluto

17 lines
543 B
Text
Raw Permalink Normal View History

2025-08-11 18:05:26 -07:00
local lines = {
"---------- 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 -----------------------"
}
for lines as line do
print(line:strip(" "):split(" "):reverse():concat(" "))
end