Skip to content

Instantly share code, notes, and snippets.

@hkupty hkupty/curry.py
Last active Aug 29, 2015

Embed
What would you like to do?
Currying python functions
from functools import partial
curry = lambda f, g: partial(
lambda F, G, *args, **kwargs: F(G(*args,**kwargs)),
f, g
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.