Updated at_cache (markdown)
14
at_cache.md
14
at_cache.md
@@ -1 +1,13 @@
|
|||||||
# @cache
|
# @cache
|
||||||
|
The @cache decorator can be import with.
|
||||||
|
´´´python
|
||||||
|
from functools import cache
|
||||||
|
|
||||||
|
@cache
|
||||||
|
def some_loop_function():
|
||||||
|
mod25 = []
|
||||||
|
for i in range(1000):
|
||||||
|
if i%25:
|
||||||
|
mod25.append(i)
|
||||||
|
return mod25
|
||||||
|
´´´
|
Reference in New Issue
Block a user