Anonymous user
Phrase reversals: Difference between revisions
m
→{{header|Elena}}
(Task clarification without changing intent,) |
|||
Line 701:
</lang>
=={{header|Elena}}==
ELENA 3.
<lang elena>import extensions.
import extensions'text.
import system'routines.
[
var reverse := (:s)(s toArray; sequenceReverse; summarize(
var phrase := "rosetta code phrase reversal".
Line 715 ⟶ 716:
console printLine(reverse(phrase)).
//Reverse each individual word in the string, maintaining original string order.
console printLine(phrase
//Reverse the order of each word of the phrase, maintaining the order of characters in each word.
console printLine(reverse(phrase
]
{{out}}
<pre>
|