Python Curry Implementation
Join the DZone community and get the full member experience.
Join For Free# Generalized version of curry, works w/ keywords too... snarfed original version
# from somewhere else ages ago, much simpler / cleaner than other implementations
curry = lambda func, *args, **kw:\
lambda *p, **n:\
func(*args + p, **dict(kw.items() + n.items()))
Python (language)
Curry (programming language)
Implementation
Opinions expressed by DZone contributors are their own.
Comments