Reverse words in a string: Difference between revisions

Content deleted Content added
No edit summary
Line 1,924: Line 1,924:
end /*j*/ /*stick a fork in it, we're all done. */</lang>
end /*j*/ /*stick a fork in it, we're all done. */</lang>
'''output''' &nbsp; is the same as the 1<sup>st</sup> REXX version. <br><br>
'''output''' &nbsp; is the same as the 1<sup>st</sup> REXX version. <br><br>

=={{header|Ring}}==
<lang ring>
aList = str2list("
---------- 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 x in aList x2 = substr(x," ",nl) alist2 = str2list(x2) See reverse(aList2) next
</lang>


=={{header|Ruby}}==
=={{header|Ruby}}==