8 lines
155 B
Text
8 lines
155 B
Text
|
|
Reverse(text : string) : string
|
||
|
|
{
|
||
|
|
mutable output = [];
|
||
|
|
foreach (c in text.ToCharArray())
|
||
|
|
output ::= c.ToString();
|
||
|
|
Concat("", output)
|
||
|
|
}
|