slices

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

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

Contains reports whether v is present in s.

func ContainsAny

func ContainsAny(s []any, v any) bool

ContainsAny reports whether v is present in s

func ContainsIsser

func ContainsIsser[E isser](s []E, name string) bool

ContainsIsser reports whether name is present in s.

func Delete

func Delete[T any](s []T, i int) []T

Delete removes element at index i from slice s and returns the modified slice.

func IndexIsser

func IndexIsser[E isser](s []E, name string) int

IndexIsser returns the index of the first occurrence of name 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