Skip to content

Instantly share code, notes, and snippets.

Robert (Jamie) Munro rjmunro

  • Diffblue / St Aldate's Church
  • Oxford
Block or report user

Report or block rjmunro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View friendly.py
def memoize(f):
cache= {}
def memf(*x):
if x not in cache:
cache[x] = f(*x)
return cache[x]
return memf
@memoize
def sum_factors(x):
You can’t perform that action at this time.