memoize

sknano.core.meta.memoize(f, cache={})[source] [edit on github][source]

Memoization function to cache dict mapping