slices

package
v0.71.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0, MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsPtrFunc

func ContainsPtrFunc[S ~[]E, E any](s S, f func(*E) bool) bool

ContainsPtrFunc behaves like slices.ContainsFunc in the standard library, but f takes pointer to an element to save extra copying.

func EqualPtrFunc

func EqualPtrFunc[S1 ~[]E1, S2 ~[]E2, E1, E2 any](s1 S1, s2 S2, eq func(*E1, *E2) bool) bool

EqualPtrFunc behaves like slices.EqualFunc in the standard library, but f takes pointers to elements to save extra copying.

func IndexPtrFunc

func IndexPtrFunc[S ~[]E, E any](s S, f func(*E) bool) int

IndexPtrFunc behaves like slices.IndexFunc in the standard library, but f takes pointer to an element to save extra copying.

Types

This section is empty.

Jump to

Keyboard shortcuts

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