slices

package
v0.2024.5 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains[S1 ~[]E, E comparable](needle E, haystack S1) bool

Contains returns true if haystack contains needle.

func ContainsAll

func ContainsAll[S1, S2 ~[]E, E comparable](needle S1, haystack S2) bool

ContainsAll returns true if haystack contains all the elements in needle, in any order. If both needle and haystack are empty this returns true.

Types

This section is empty.

Jump to

Keyboard shortcuts

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