A+B: Difference between revisions
Content added Content deleted
(Added Order implementation of a program to add signed numbers A and B) |
(→{{header|Tailspin}}: alternative solution) |
||
Line 4,528: | Line 4,528: | ||
$IN::lines -> nums -> $(1) + $(2) -> '$; |
$IN::lines -> nums -> $(1) + $(2) -> '$; |
||
' -> !OUT::write |
|||
</lang> |
|||
Alternatively |
|||
<lang tailspin> |
|||
composer nums |
|||
(<WS>?) (def a: <INT>;) (<WS>) <INT> -> $a + $ (<WS>?) |
|||
end nums |
|||
$IN::lines -> nums -> '$; |
|||
' -> !OUT::write |
' -> !OUT::write |
||
</lang> |
</lang> |