Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Memoize ¶
func Memoize[Key comparable, Value any](f func(Key) Value) func(Key) Value
higher order function that takes a function 'f' and returns a new function that caches the results of 'f'
func Memoize2 ¶
func Memoize2[Key1 comparable, Key2 comparable, Value any](f func(Key1, Key2) Value) func(Key1, Key2) Value
memoize but with two key arguments (that are merged into a single key type)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.