generator

package
v0.0.0-...-6197fbb Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator[T any] struct {
	// contains filtered or unexported fields
}

func Int

func Int[T constraints.Integer](start, end, step T) *Generator[T]

func New

func New[T any](initValue T, gen func(T) (T, bool)) *Generator[T]

func (*Generator[T]) Next

func (g *Generator[T]) Next() bool

func (*Generator[T]) Reset

func (g *Generator[T]) Reset()

func (*Generator[T]) Value

func (g *Generator[T]) Value() T

Jump to

Keyboard shortcuts

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