Increment a numerical string: Difference between revisions
Content deleted Content added
Add Ecstasy example |
|||
Line 3,114: | Line 3,114: | ||
$string += 10; |
$string += 10; |
||
$string is now 12355. |
$string is now 12355. |
||
=={{header|Transd}}== |
|||
<syntaxhighlight lang="Scheme"> |
|||
(with s "12345" |
|||
(= s String((+ (to-Int s) 1)))) |
|||
(textout s)) |
|||
</syntaxhighlight> |
|||
{{out}} |
|||
<pre> |
|||
12346 |
|||
</pre> |
|||
=={{header|TUSCRIPT}}== |
=={{header|TUSCRIPT}}== |