Created
October 21, 2015 00:17
-
-
Save AndyNovo/1c73784bb6824497782e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def generic_list_rec(L): | |
if L == []: | |
return something | |
else: | |
return f(generic_list_rec(L[1:]), L[0]) | |
def generic_int_rec(n): | |
if n == 0: | |
return something | |
else: | |
return g(generic_int_rec(n-1), n) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment