memo

package
v0.0.0-...-edd59cf Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memo

type Memo[T any, Arg any] struct {
	// contains filtered or unexported fields
}

func MakeMemo

func MakeMemo[T any, Arg any](f func(...Arg) T) *Memo[T, Arg]

func (*Memo[T, Arg]) Get

func (memo *Memo[T, Arg]) Get(args ...Arg) T

func (*Memo[T, Arg]) Invalidate

func (memo *Memo[T, Arg]) Invalidate()

Jump to

Keyboard shortcuts

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