Anonymous user
Currying: Difference between revisions
→{{header|Perl 6}}: make work again
(GP) |
(→{{header|Perl 6}}: make work again) |
||
Line 307:
=={{header|Perl 6}}==
All callable objects have an "assuming" method that can do partial application of either positional or named arguments. Here we curry the built-in subtraction operator.
say negative 1;</lang>
{{out}}
<pre>-1</pre>
=={{header|Prolog}}==
|