slice

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT Imports: 0 Imported by: 44

README

slice

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains added in v0.1.1

func Contains[T comparable](items []T, item T) bool

func Equal added in v0.1.0

func Equal[T comparable](a, b []T) bool

Equal compares two slices of comparable types.

func Index added in v0.0.2

func Index[T comparable](items []T, item T) int

Index returns index of an item in a slice

func RemoveInPlace added in v0.0.2

func RemoveInPlace[T comparable](v T, slice []T) []T

RemoveInPlace removes an item from a slice in place without new memory allocation

Types

This section is empty.

Jump to

Keyboard shortcuts

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