Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Function ¶
func Function[F func(K) V, K comparable, V any](f F) F
Function memoizes f, caching unique values of k. Initial calls to the resulting function will call f(k), then cache and return v. Subsequent calls will return the cached value for k.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.