A+B: Difference between revisions

Content added Content deleted
Line 4,777: Line 4,777:
{
{
return getWord(%input, 0) + getWord(%input, 1);
return getWord(%input, 0) + getWord(%input, 1);
}</lang>

=={{header|Transd}}==
When compared with the Scheme's code for this task, this example vividly demonstrates the strong typedness of Transd.
<lang scheme>
#lang transd

mainModule : {
a: Int(),
b: Int(),
_start: (lambda (textout (+ (read a) (read b))))
}</lang>
}</lang>