Update README.md

This commit is contained in:
Cutipus 2018-05-22 18:17:47 +03:00 committed by GitHub
parent a60c04fed8
commit ec826f0068
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
```