searchops

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains[T comparable](values []T, want T) bool

Contains reports whether values includes want.

func ContainsFunc

func ContainsFunc[T any](values []T, match contracts.Predicate[T]) bool

ContainsFunc reports whether any value satisfies match.

func First

func First[T any](values []T) T

First returns the first value from values, or the zero value when values is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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