Skip to content

Instantly share code, notes, and snippets.

@acwoss
Created April 24, 2018 00:47
Show Gist options
  • Save acwoss/ad865d017448689baf2969b9630fccb8 to your computer and use it in GitHub Desktop.
Save acwoss/ad865d017448689baf2969b9630fccb8 to your computer and use it in GitHub Desktop.
WarmDetailedVisitor created by acwoss - https://repl.it/@acwoss/WarmDetailedVisitor
sucessor = lambda x: x+1
antecessor = lambda x: x-1
def sum(x, y):
if not y:
return x
return sum(sucessor(x), antecessor(y))
print(sum(3, 5)) # 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment