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: 01/21/2021 3:08:47.000 AM