8 lines
183 B
Text
8 lines
183 B
Text
|
|
function reverse( str string ) returns( string )
|
||
|
|
result string;
|
||
|
|
for ( i int from StrLib.characterLen( str ) to 1 decrement by 1 )
|
||
|
|
result ::= str[i:i];
|
||
|
|
end
|
||
|
|
return( result );
|
||
|
|
end
|