From 1449ad3279eeb7e3eed0abd44f24de42d85ede73 Mon Sep 17 00:00:00 2001 From: Lerking <33354709+Lerking@users.noreply.github.com> Date: Tue, 12 Mar 2024 08:33:00 +0100 Subject: [PATCH] Updated at_cache (markdown) --- at_cache.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/at_cache.md b/at_cache.md index f0a8a60..ddc8597 100644 --- a/at_cache.md +++ b/at_cache.md @@ -1 +1,13 @@ -# @cache \ No newline at end of file +# @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 +´´´ \ No newline at end of file