RosettaCodeData/Task/Reverse-a-string/Eiffel/reverse-a-string.e

16 lines
280 B
Plaintext

class
APPLICATION
create
make
feature
make
-- Demonstrate string reversal.
do
my_string := "Hello World!"
my_string.mirror
print (my_string)
end
my_string: STRING
-- Used for reversal
end