Lasso Soft Inc. > Home

[ string->reverse ]

Method

[String->Reverse] modifies the string object in-place by reversing the order of all characters within the string.

  • Syntax
'String Object'->reverse
Examples
  • Beginner

To reverse all the characters in a string:

Use the [String->Reverse] method. The following example reverses a string object so that its characters print out in reverse order.

Code

local('s') = 'The quick white rhino'
#s->reverse
#s

Result

onihr etihw kciuq ehT

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft