Skip to content

memoize with lifetime? #20

@hmeyer

Description

@hmeyer

Hey Lewin!
When writing a dynamic programming solution for Advent of Code I was really happy to find memoize!
But sadly it does not (yet) support the use case.
One reason is, that due to the current implementation references are not supported.

I don't have a good solution yet, but I wonder: What would it take to change memoize from global cache to a cache with a non-'static lifetime?

Cheers, Henning

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions