Increment a numerical string: Difference between revisions

Content deleted Content added
Xtclang (talk | contribs)
Add Ecstasy example
Nbdsp (talk | contribs)
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}}==