Single argument function memoization in pure elm.
Motivated by the deprecation of elm-lang/lazy. This library is inspired by eeue56/elm-lazy in that it makes memoization explicit. The memoized function is encapsulated as a Memo
. Calling a memoized function returns both the result of the original function, and a new Memo
containing the possibly newly cached result.
See the documentation for examples.