DEV Community

Discussion on: Closure? I Hardly Know Her!

Collapse
 
xngwng profile image
Xing Wang

If you like closures, try one of the more functional oriented languages (or techniques, since Python also support functions as first class objects). It takes to the next level of thinking and help you write even more concise/elegant code.

Collapse
 
rwhitt2049 profile image
Ry Whittington

Check out the Toolz library for functional techniques written in Python. My favorites are pipe, curry, and compose.

toolz.readthedocs.io/en/latest/api...

It also has the same API implemented in C in the CyToolz library.