Cache the return values of an effectless closure in a hashmap. Inspired by the closure_cacher crate, but attempts to provide a more versatile implementation.
use ;
let demo = cached;
assert_eq!;
The second argument is a callback, it can be used for recursion.
use ;
let demo = cached;
assert_eq!