Reverse a string: Difference between revisions

→‎{{header|Applesoft BASIC}}: move under BASIC heading
(→‎Seed7: 'reverse' became a built-in function since the original post. So, 'reverse' was changed to 'reverso' for the user-defined function and an implementation using the built-in function 'reverse' was demonstrated as well.)
(→‎{{header|Applesoft BASIC}}: move under BASIC heading)
Line 436:
<syntaxhighlight lang="applescript">{{"! ereht olleH", {5, 4, 3, 2, 1}},
{"! ereht olleH", {5, 4, 3, 2, 1}}}</syntaxhighlight>
 
=={{header|Applesoft BASIC}}==
<syntaxhighlight lang="applesoftbasic">10 A$ = "THE FIVE BOXING WIZARDS JUMP QUICKLY"
20 GOSUB 100REVERSE
30 PRINT R$
40 END
 
100 REMREVERSE A$
110 R$ = ""
120 FOR I = 1 TO LEN(A$)
130 R$ = MID$(A$, I, 1) + R$
140 NEXT I
150 RETURN</syntaxhighlight>
 
=={{header|Arturo}}==
1,479

edits