Reverse words in a string: Difference between revisions
m
→{{header|J}}
m (→{{header|J}}) |
|||
Line 1,074:
----------------------- Robert Frost
</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}}==
|