Cache results in an n
-long array.
As with arrayMemo
, but memoizing double results !=
sentinel
.
Cache results in a hash map.
Cache results in a hash map. Nonsensical unless K
has
a meaningful hashCode
and java.lang.Object.equals
.
As this memo uses a single var, it's
thread-safe.
Cache results in a list map.
Cache results in a list map. Nonsensical unless K
has
a meaningful java.lang.Object.equals
. As this memo uses a single var, it's
thread-safe.
Cache results in a tree map.
Cache results in a tree map. As this memo uses a single var, it's thread-safe.
Cache results in a scala.collection.mutable.HashMap.
Cache results in a scala.collection.mutable.HashMap.
Nonsensical if K
lacks a meaningful hashCode
and
java.lang.Object.equals
.
As with mutableHashMapMemo
, but forget elements according to
GC pressure.