Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cache ¶
func Cache[F ~func(K) T, K comparable, T any](f F) F
Cache converts a unary function into a unary function that caches the value depending on the parameter
func CacheCallback ¶
func CacheCallback[F ~func(A) T, KF func(A) K, C ~func(K, func() func() T) func() T, A any, K comparable, T any](kf KF, getOrCreate C) func(F) F
CacheCallback converts a unary function into a unary function that caches the value depending on the parameter
func ContramapCache ¶
func ContramapCache[F ~func(A) T, KF func(A) K, A any, K comparable, T any](kf KF) func(F) F
ContramapCache converts a unary function into a unary function that caches the value depending on the parameter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.