slices

package
v0.10.0-alpha.3.dev.20... Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 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 isser](s []E, name string) bool

Contains reports whether name is present in s.

func Delete

func Delete[S ~[]E, E isser](s S, i int) S

Delete removes the elements s[i:i+1] from s, returning the modified slice.

func Index

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

Index 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