Method code for $string.reverse()

[Turn off line numbering]
  1: arg string;
  2: var length, output, x;
  3: 
  4: length = string.length();
  5: output = "";
  6: for x in [1 .. length]
  7:     output += string[length - x + 1];
  8: return output;

// Created 27-Mar-1995 as a part of ColdCore, see: @help Credit

Tlon