Example: Reverse a string

Description

Reverse the order of the characters in a give string of characters.

Source

Problem description from Rosetta Code

Solution

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

Output

!dlroW olleH

cached: 04/06/2020 1:06:08.000 AM