$ python
Python 2.7.5 (default, Sep 2 2013, 20:02:46)
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from funcy import compose
>>> def add(a, b):
... return a + b
...
>>> def div2(x):
... return x / 2
...
>>> f = compose(div2, add)
>>> f(5, 1)
3
>>>