Python curry implementation
# from somewhere else ages ago, much simpler / cleaner than other implementations
1 2 curry = lambda func, *args, **kw:\ 3 lambda *p, **n:\ 4 func(*args + p, **dict(kw.items() + n.items()))
DZone Snippets > jbone > python
13482 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
1 2 curry = lambda func, *args, **kw:\ 3 lambda *p, **n:\ 4 func(*args + p, **dict(kw.items() + n.items()))