funcset

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: MIT-0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuncSet

type FuncSet[Obj any] func(Obj) bool

FuncSet implements core.SetOf using a function.

func FromFunc

func FromFunc[Obj any](contains func(Obj) bool) FuncSet[Obj]

FromFunc returns a FuncSet implemented by the specified function.

func (FuncSet[Obj]) Contains

func (set FuncSet[Obj]) Contains(obj Obj) bool

Contains returns true when the underlying function returns true for the specified object.

Jump to

Keyboard shortcuts

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