Currying: Difference between revisions
Content added Content deleted
(add BQN) |
Alextretyak (talk | contribs) (Added 11l) |
||
Line 10: | Line 10: | ||
[[Category:Functions and subroutines]] |
[[Category:Functions and subroutines]] |
||
<br><br> |
<br><br> |
||
=={{header|11l}}== |
|||
{{trans|Python}} |
|||
<lang 11l>F addN(n) |
|||
F adder(x) |
|||
R x + @=n |
|||
R adder |
|||
V add2 = addN(2) |
|||
V add3 = addN(3) |
|||
print(add2(7)) |
|||
print(add3(7))</lang> |
|||
{{out}} |
|||
<pre> |
|||
9 |
|||
10 |
|||
</pre> |
|||
=={{header|Ada}}== |
=={{header|Ada}}== |