arrayutil

package
v0.46.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 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](array []E, c E) bool

func Dedupe

func Dedupe[E comparable](array []E) []E

func Delete added in v0.19.0

func Delete[E comparable](array []E, c E) []E

func RangeInt added in v0.21.0

func RangeInt(start, end int, rev bool) []int

RangeInt returns creates a slice with integers from start to end(excluding) the range can also be reversed using rev flag

func Reverse added in v0.21.0

func Reverse[T any](s []T)

Reverse reverses a slice in-place

Types

This section is empty.

Jump to

Keyboard shortcuts

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