This commit is contained in:
Cutipus 2018-05-22 18:19:59 +03:00
commit 702bcb09ba
1 changed files with 17 additions and 0 deletions

17
README.md Normal file
View File

@ -0,0 +1,17 @@
# Function Composition
Allows you to compose functions seemlessly.
```python
>>> from compose import Compose
>>> def add2(x):
... return x + 2
...
>>> def mul3(x):
... return x * 3
...
>>> Compose >> add2 >> mul3
add2 >> mul3
>>> Compose >> add2 >> mul3 | 10
36
```