Skip to content

Instantly share code, notes, and snippets.

@AndyNovo
Created October 21, 2015 00:17
Show Gist options
  • Save AndyNovo/1c73784bb6824497782e to your computer and use it in GitHub Desktop.
Save AndyNovo/1c73784bb6824497782e to your computer and use it in GitHub Desktop.
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