memoize

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

Memoization function to cache dict mapping