iterator

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectSlice

func CollectSlice[I ~func(yield func(E) bool) bool, E any](it I) []E

func Concat

func Concat[I ~func(yield func(E) bool) bool, E any](is ...I) func(yield func(E) bool) bool

func Fold

func Fold[I ~func(yield func(E) bool) bool, A, E any](it I, acc A, f func(A, E) A) A

func Map

func Map[I ~func(yield func(E) bool) bool, E, F any](it I, f func(E) F) func(yield func(F) bool) bool

func Next

func Next[I ~func(yield func(E) bool) bool, E any](it I) (E, bool)

func OfSlice

func OfSlice[S ~[]E, E any](s S) func(yield func(E) bool) bool

func OfSliceRef

func OfSliceRef[S ~[]E, E any](s S) func(yield func(*E) bool) bool

func Reduce

func Reduce[I ~func(yield func(E) bool) bool, E any](it I, f func(E, E) E) E

Types

This section is empty.

Jump to

Keyboard shortcuts

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