/ Published in: Python
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
Copy this code and paste it in your HTML
from functional import partial, compose multi_compose = partial(reduce, compose)
URL: http://oakwinter.com/code/functional/documentation/cookbook.html