From ec826f0068679704f44be3044a01dcc31c13c9a4 Mon Sep 17 00:00:00 2001 From: Cutipus Date: Tue, 22 May 2018 18:17:47 +0300 Subject: [PATCH] Update README.md --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..dd21981 --- /dev/null +++ b/README.md @@ -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 +```