Return to Snippet

Revision: 1863
at November 15, 2006 10:21 by collin


Initial Code
from functional import partial, compose

multi_compose = partial(reduce, compose)

Initial URL
http://oakwinter.com/code/functional/documentation/cookbook.html

Initial Description
Since the version of compose() that ships with functional only allows you to compose two functions, I present this version that composes n functions.

Initial Title
A multi-function compose

Initial Tags
python, function

Initial Language
Python