Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python cache return value

from functools import cache

@cache
def factorial(n):
    return n * factorial(n-1) if n else 1
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #cache #return
ADD COMMENT
Topic
Name
9+9 =