Function memoize

Source
pub fn memoize<Arg, Output, F>(f: F) -> impl FnMemo<Arg, Output>
where Arg: Clone + Eq + Hash, Output: Clone, F: RecurFn<Arg, Output>,
Expand description

Creates a memoization of f using HashMap as cache.