Go to file
Cutipus dddd067f76
Create LICENSE
2018-05-22 18:23:16 +03:00
.gitignore Created .gitignore 2018-05-22 18:18:23 +03:00
LICENSE Create LICENSE 2018-05-22 18:23:16 +03:00
README.md Update README.md 2018-05-22 18:17:47 +03:00
compose.py Fixed calling when g isn't supplied to Composition 2018-05-22 18:15:23 +03:00

README.md

Function Composition

Allows you to compose functions seemlessly.

>>> 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