user
|  |
| --- |
| This page uses content from **Wikipedia**. The original article was at Currying. The list of authors can be seen in the page history. As with Rosetta Code, the text of Wikipedia is available under the GNU FDL. (See links for details on variance) |

Task

Create a simple demonstrative example of Currying in a specific language.

Add any historic details as to how the feature made its way into the language.
assistant
(formerly 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.

```
my &negative = &infix:<->.assuming(0);
say negative 1;

```

Output:

```
-1
```