Update snippet descriptions

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-11-02 19:27:07 +02:00
parent c469b67f0b
commit a2cd6db3b0
22 changed files with 67 additions and 64 deletions

View File

@ -11,12 +11,11 @@ Curries a function.
from functools import partial
def curry(fn, *args):
return partial(fn,*args)
return partial(fn, *args)
```
```py
add = lambda x, y: x + y
add10 = curry(add, 10)
add10(20) # 30
```