/ Published in: Python
URL: http://oakwinter.com/code/functional/documentation/cookbook.html
Since the version of compose() that ships with functional only allows you to compose two functions, I present this version that composes n functions.
Expand |
Embed | Plain Text
from functional import partial, compose multi_compose = partial(reduce, compose)
You need to login to post a comment.
