Anonymous user
Reverse words in a string: Difference between revisions
→{{header|Modula-2}}
(added Factor) |
|||
Line 1,992:
END ReverseWords.
</lang>
=={{header|Nial}}==
{{works with|Q'Nial Version 6.3}}
<lang Nial>
# Define a function to convert a list of strings to a single string.
join is rest link (' ' eachboth link)
iterate (write join reverse (' ' string_split)) \
\
\
'------------ Eldorado ----------' \
'' \
'... here omitted lines ...' \
'' \
'Mountains the "Over' \
'Moon, the Of' \
'Shadow, the of Valley the Down' \
'ride," boldly Ride,' \
'replied,--- shade The' \
'Eldorado!" for seek you "If' \
'' \
'Poe Edgar -----------------------'
</lang>
{{out}}
<pre>
---------- Eldorado ------------
... lines omitted here ...
"Over the Mountains
Of the Moon,
Down the Valley of the Shadow,
Ride, boldly ride,"
The shade replied,---
"If you seek for Eldorado!"
----------------------- Edgar Poe
</pre>
=={{header|Nim}}==
|