RosettaCodeData/Task/Reverse-a-string/Clipper/reverse-a-string.clipper
2023-07-01 13:44:08 -04:00

6 lines
131 B
Text

FUNCTION Reverse(sIn)
LOCAL sOut := "", i
FOR i := Len(sIn) TO 1 STEP -1
sOut += Substr(sIn, i, 1)
NEXT
RETURN sOut