blob: d84eb0a4110c6260a6681faaf7edf7dcf1f6b774 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# Currying
Lambda calculus naturally supports currying -- that is, only partially
applying a function. In fact *any* function can be applied with *any*
amount of arguments!
In bruijn, currying is a great way to make functions even more elegant.
Partially applying the `mul`{.bruijn} function:
``` bruijn
six [0 (+3)] (mul (+2))
```
|