Documentation
¶
Index ¶
- Variables
- func Contains[T comparable](array []T, value T) bool
- func Find[T comparable](array []T, value T) int
- func IsEqual[T comparable](FirstArray, SecondArray []T) bool
- func Max[T cmp.Ordered](array []T) (any, error)
- func Min[T cmp.Ordered](array []T) (any, error)
- func Remove[T comparable](array []T, index int) []T
- func Slice[T comparable](array []T, start, end int) ([]T, error)
- func Sort[T cmp.Ordered](array []T, order int)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Contains ¶ added in v1.0.1
func Contains[T comparable](array []T, value T) bool
Contains test if the value is in the array return True if inside and False if not inside
func Find ¶
func Find[T comparable](array []T, value T) int
Find returns the index of the value in the array
func IsEqual ¶
func IsEqual[T comparable](FirstArray, SecondArray []T) bool
IsEqual test two array and return true if same or false if different
func Slice ¶
func Slice[T comparable](array []T, start, end int) ([]T, error)
Slice the array from start to end included
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.