lazy

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2025 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Value added in v0.2.0

func Value[T any](l Lazy[T]) T

Types

type Lazy

type Lazy[T any] func() T

func Of

func Of[T any](x T) Lazy[T]

func Once

func Once[L ~func() T, T any](l L) Lazy[T]

type Lazy2

type Lazy2[T, V any] func() (T, V)

func Once2

func Once2[L ~func() (T, V), T, V any](l L) Lazy2[T, V]

type Lazy3

type Lazy3[T, U, V any] func() (T, U, V)

Jump to

Keyboard shortcuts

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