Reverse words in a string: Difference between revisions

Content added Content deleted
Line 1,074: Line 1,074:
----------------------- Robert Frost
----------------------- Robert Frost
</lang>
</lang>

The verb phrase <code>([:;@|.[:<;.1 ' ',])</code> reverses words in a string. The rest of the implementation has to do with defining the block of text we are working on, and applying this verb phrase to each line of that text.


=={{header|Java}}==
=={{header|Java}}==