Discover Packages
github.com/unmango/go
iter
package
Version:
v0.0.8-alpha
Opens a new window with list of versions in this module.
Published: Nov 8, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 10
Opens a new window with list of known importers.
Documentation
Documentation
¶
func D[V any](seq Seq[V]) iter.Seq[V]
func D2[K, V any](seq Seq2[K, V]) iter.Seq2[K, V]
func Pull[V any](seq Seq[V]) (next func() (V, bool), stop func())
func Pull2[K, V any](seq Seq2[K, V]) (next func() (K, V, bool), stop func())
type Seq
type Seq2
type Seq3
func Pull[V any ](seq Seq [V]) (next func() (V, bool ), stop func())
func Pull2[K, V any ](seq Seq2 [K, V]) (next func() (K, V, bool ), stop func())
Seq is an iterator over sequences of individual values. When called as seq(yield),
seq calls yield(v) for each value v in the sequence, stopping early if yield
returns false. See the iter package documentation for more details.
Will be replaced with a type alias when "generic type aliases" is a stable feature
func Singleton[V any ](v V) Seq [V]
func Singleton2[K, V any ](k K, v V) Seq2 [K, V]
type Seq3[T, U, V any ] func(yield func(T, U, V) bool )
func Singleton3[T, U, V any ](t T, u U, v V) Seq3 [T, U, V]
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.