Source File
iterfuncs.go
Belonging Package
golang.org/x/exp/collection/internal/iterfuncs
// Copyright 2026 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.// Package iterfuncs provides functions that work on iterators.package iterfuncsimport// Every reports whether f(v) is true for every element in seq.// It stops at the first element where f returns false.func [ any]( iter.Seq[], func() bool) bool {for := range {if !() {return false}}return true}// Some reports whether f(v) is true for some element in seq.// It stops at the first element where f returns true.func [ any]( iter.Seq[], func() bool) bool {for := range {if () {return true}}return false}
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)