slice

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy[V any](slice []V) []V

Copy returns a copy of the slice, otherwise nil.

func Create

func Create[V any](_ []V, size int) []V

Create returns a silce with the given size, otherwise nil.

func HasNaN

func HasNaN(slice []float64) bool

HasNaN returns true when the slice has any values that are NaN, otherwise false.

func Lengths

func Lengths[V any](slices ...[]V) bool

Lengths returns true if all slices have same length, otherwise false.

func Valid

func Valid(slice any) bool

Valid returns true if slice is valid, otherwise false.

Types

This section is empty.

Jump to

Keyboard shortcuts

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