iter

package
v0.11.7 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pull

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

Pull is our implementation of iter.Pull from stdlib original impl - https://cs.opensource.google/go/go/+/refs/tags/go1.22rc2:src/iter/iter.go;l=56 Note that seq is going to be called in a separate goroutine (original impl uses private coroutine functions)

Types

type Seq

type Seq[V any] func(yield func(V) bool)

type Seq2

type Seq2[K, V any] func(yield func(K, V) bool)

Jump to

Keyboard shortcuts

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