BUCL.io / reverse
Dreht eine Zeichenkette um.
Beispiel
{res} reverse "ollaH"
Quellcode
#description: Reverse a text.
#description-DE: Dreht eine Zeichenkette um.
#sample: {res} reverse "ollaH"
#to test direct: {input} = "ollaH"
{res} = ""
if {input/0}
{charLength} length {input/0}
{loop} repeat {charLength}
{res} = "{input/0/{loop/index}}{res}"
{output} = {res}