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 tree map.
Cache results in a tree map. 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.
(Since version removed in scalaz 7.3: not efficient) 7.2.19
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
.
(Since version removed in scalaz 7.3: not thread safe, relies on Object) 7.2.19
(Since version removed in scalaz 7.3: leaks mutable state, not thread safe) 7.2.19
As with mutableHashMapMemo
, but forget elements according to
GC pressure.
As with mutableHashMapMemo
, but forget elements according to
GC pressure.
(Since version removed in scalaz 7.3: not thread safe, relies on Object, not efficient) 7.2.19