moreiters

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any added in v0.19.0

func Any[T any](seq iter.Seq[T], pred func(T) bool) bool

Any reports whether any pred(t) for t in seq returns true.

func Contains added in v0.19.0

func Contains[T comparable](seq iter.Seq[T], x T) bool

Contains reports whether x is an element of the sequence seq.

func Every added in v0.19.0

func Every[T any](seq iter.Seq[T], pred func(T) bool) bool

Every reports whether every pred(t) for t in seq returns true, stopping at the first false element.

func First

func First[T any](seq iter.Seq[T]) (z T, ok bool)

First returns the first value of seq and true. If seq is empty, it returns the zero value of T and false.

Types

This section is empty.

Jump to

Keyboard shortcuts

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