Skip to content

Instantly share code, notes, and snippets.

@ieure
Created November 8, 2011 15:19
Show Gist options
  • Save ieure/1348007 to your computer and use it in GitHub Desktop.
Save ieure/1348007 to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
from operator import add, mul
def f(*args, **kwargs):
return lambda g: g(*args, **kwargs)
map(f(5, 5), (add, mul)) # -> [10, 25]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment