slices

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All[E comparable](s []E, e ...E) bool

All If all the elements in e that are in the s then return true

func Any

func Any[E comparable](s []E, e ...E) bool

Any If one of the elements in e that are in the s then return true

func Contains

func Contains[E comparable](s []E, e E) bool

Contains reports whether e is present in s

func Index

func Index[E comparable](s []E, e E) int

Index returns the index of the first occurrence of e in s, or -1 if not present.

Types

This section is empty.

Jump to

Keyboard shortcuts

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