3 # This file is part of NIT ( http://www.nitlanguage.org ).
4 # This program is public domain
6 # Task: Reverse words in a string
7 # SEE: <http://rosettacode.org/wiki/Reverse_words_in_a_string>
10 ---------- Ice and Fire ------------
12 fire, in end will world the say Some
14 desire of tasted I've what From
15 fire. favor who those with hold I
17 ... elided paragraph last ...
19 Frost Robert -----------------------"""
21 for l
in text
.split
("\n") do print l
.split
(" ").reversed
.join
(" ")