💾 Archived View for idiomdrottning.org › preserve captured on 2023-11-04 at 11:58:40. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-04-28)
-=-=-=-=-=-=-
preserve is a combinator that caches the result of a procedure for a given number of seconds.
(define slow-plus (preserve 5 +)) (list (slow-plus 1 2) (slow-plus 3 4))
This returns (3 3). Calling (slow-plus 3 4) five seconds later returns 7.
sudo chicken-install preserve
For a repo,
git clone https://idiomdrottning.org/preserve