Zulip Chat Archive
Stream: lean4
Topic: memoize functions with Hashable domain
James Gallicchio (Jun 24 2023 at 22:14):
is there an implementation of a memoize
function for arbitrary Hashable
-domain functions? presumably with Std.HashMap as the backing. I'd prefer a version implemented within a StateT
if the alternative is a global IO.Ref accessed unsafely or something :)
James Gallicchio (Jun 24 2023 at 22:16):
I see docs4#memoFix but it does not seem like what I want
Last updated: Dec 20 2023 at 11:08 UTC