functional

package
v0.0.0-...-a4aebfb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2025 License: BSD-3-Clause Imports: 0 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL