Junior — Senior
Remembering function results
livecode
Task condition
Create a decorator that will cache the results of a function execution. When called again with the same arguments, it should return the already computed value from the cache (for example, using a dictionary). If the result for these parameters is not yet saved, compute it, store it in the cache, and return it.