Skip to content

Instantly share code, notes, and snippets.

@svenkreiss
Last active December 3, 2015 18:21
Show Gist options
  • Save svenkreiss/ff20ff0abbbe23174efc to your computer and use it in GitHub Desktop.
Save svenkreiss/ff20ff0abbbe23174efc to your computer and use it in GitHub Desktop.
class MapF(object):
def __init__(self, f):
self.f = f
def __call__(self, tc, i, x):
return (self.f(xx) for xx in x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment