• Caches the return value of calling a function. using the arguments as keys. This is also called memoization. Please don't abuse this function to avoid memory inefficiencies. Pending tests. Please report bugs.

    Type Parameters

    Parameters

    • func: T

    Returns T

    Example