Skip to content

Instantly share code, notes, and snippets.

@w495
Created December 10, 2013 21:37
Show Gist options
  • Save w495/7900667 to your computer and use it in GitHub Desktop.
Save w495/7900667 to your computer and use it in GitHub Desktop.
add(1)(2)(3) ## === 6
class _int(int):
def __call__(self, x):
return _int(self+x)
def add(x):
a = _int(0)
return a(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment