This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Prelude. | |
from functools import partial | |
from itertools import chain, ifilter, islice, izip_longest | |
def compose(*funcs): | |
"""Return a function such that compose(a,b,c)(arg1, arg2, arg3) | |
is equivalent to a(b(c(arg1, arg2, arg3))).""" | |
# See http://bugs.python.org/issue1660179 | |
def _composefunc(*args, **kw): |