From cb2a9dd1735ae0ca94c7379fd16258b939612d83 Mon Sep 17 00:00:00 2001 From: Lerking <33354709+Lerking@users.noreply.github.com> Date: Tue, 12 Mar 2024 08:59:07 +0100 Subject: [PATCH] Updated at_cache (markdown) --- at_cache.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/at_cache.md b/at_cache.md index b82d69f..db769de 100644 --- a/at_cache.md +++ b/at_cache.md @@ -4,4 +4,15 @@ The @cache decorator can be imported with. ```python from functools import cache +@cache +def mod25(num): + return num%25 + +def some_loop_function(iterations=1000): + for i in iterations: + mod25(i) + +if __name__ == "__main__": + some_loop_function() + some_loop_function(1200) ``` \ No newline at end of file