predicate

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package predicate provides helpers for filtering keys or values of a map

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Key

func Key[V, K any](predicate func(K) (bool, error)) (out func(K, V) (bool, error))

Key adapts a key appliable predicate to a key\value one

func Value

func Value[K, V any](predicate func(V) (bool, error)) (out func(K, V) (bool, error))

Value adapts a value appliable predicate to a key\value one

Types

This section is empty.

Jump to

Keyboard shortcuts

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