Idiomatic function memoization in Elixir
I have written a blog post showing how to memoize functions in Elixir and providing the scaffold for the Memoize
module that could be used as
use Memoized, name: FortyTwo, fun: fn -> Process.sleep(1_000); 42 end
Read next Testing Individual Elixir Doctests