reverse method

String reverse()

Returns a reversed version of the string.

Implementation

String reverse() {
  return split('').reversed.join();
}