vector

package
v0.0.0-...-36d8597 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains[V Type](a []V, x V) bool

TODO: add test Contains tells whether a contains x.

func Find

func Find[V Type](a []V, x V) int

TODO: add test Find returns the smallest index i at which x == a[i], or len(a) if there is no such index.

func Unique

func Unique[V Type](slice []V) []V

TODO: add test Returns unique items in a slice

Types

type Type

type Type interface {
	int | int64 | uint64 | float64 | string
}

Jump to

Keyboard shortcuts

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