Created
April 24, 2018 00:47
-
-
Save acwoss/ad865d017448689baf2969b9630fccb8 to your computer and use it in GitHub Desktop.
WarmDetailedVisitor created by acwoss - https://repl.it/@acwoss/WarmDetailedVisitor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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