View Source Mimi (Mimi v0.1.0)

A very simple memoization implementation that uses an Agent to store state.

Link to this section Summary

Functions

Memoize an anonymous function fun of a single argument. This returns {:ok, pid, fun_mem}, where pid is the PID of the Agent that stores the memoized state, and fun_mem is the memoized function.

Link to this section Functions

Memoize an anonymous function fun of a single argument. This returns {:ok, pid, fun_mem}, where pid is the PID of the Agent that stores the memoized state, and fun_mem is the memoized function.