iter

package module
v0.0.0-...-78a2a1c Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func D

func D[V any](seq Seq[V]) iter.Seq[V]

func D2

func D2[K, V any](seq Seq2[K, V]) iter.Seq2[K, V]

func Pull

func Pull[V any](seq Seq[V]) (next func() (V, bool), stop func())

func Pull2

func Pull2[K, V any](seq Seq2[K, V]) (next func() (K, V, bool), stop func())

Types

type Seq

type Seq[V any] iter.Seq[V]

func Empty

func Empty[V any]() Seq[V]

func Singleton

func Singleton[V any](v V) Seq[V]

func U

func U[V any](seq iter.Seq[V]) Seq[V]

type Seq2

type Seq2[K, V any] iter.Seq2[K, V]

func Empty2

func Empty2[K, V any]() Seq2[K, V]

func Singleton2

func Singleton2[K, V any](k K, v V) Seq2[K, V]

func U2

func U2[K, V any](seq iter.Seq2[K, V]) Seq2[K, V]

type Seq3

type Seq3[T, U, V any] func(yield func(T, U, V) bool)

func Singleton3

func Singleton3[T, U, V any](t T, u U, v V) Seq3[T, U, V]

Jump to

Keyboard shortcuts

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