boolseq

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package boolseq contains helpers for sequences of booleans.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func And

func And(sequence iter.Seq[bool]) bool

And applies a logical AND to all items of a sequence. Returns false if it encounters any false, else true. Stops pulling from sequence as soon as the first false is found.

Runs forever if given an infinite sequence where every value is true.

func Or

func Or(sequence iter.Seq[bool]) bool

Or applies a logical OR to all items of a sequence. Returns true if it encounters any true, else false. Stops pulling from sequence as soon as the first true is found.

Runs forever if given an infinite sequence where every value is false.

Types

This section is empty.

Jump to

Keyboard shortcuts

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