array

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ItemInArray

func ItemInArray[Item comparable](item Item, items []Item) bool

ItemInArray returns true if an item is in the array. Deprecated: Use the built-in slices.Contains function instead

func Max

func Max[Item constraints.Ordered](items ...Item) Item

Max returns the largest element in the array. Deprecated: Use the built-in max function instead

func Min

func Min[Item constraints.Ordered](items ...Item) Item

Min returns the smallest element in the array. Deprecated: Use the built-in min function instead

Types

This section is empty.

Jump to

Keyboard shortcuts

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