arrx

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func At

func At[T any](ss []T, i int) (r T)

func Avg added in v0.2.0

func Avg[T U](ss []T) (avg T)

func Del

func Del[T any](ss []T, i int) []T

func Find

func Find[T any](s []T, predicate func(item T) bool) (r T, index int)

func Index

func Index[T any](s []T, predicate func(item T) bool) (index int)

func Set

func Set[T any](ss []T, i int, v T)

func Sum added in v0.2.0

func Sum[T U](ss []T) (sum T)

Types

type F added in v0.2.0

type F interface {
	~float32 | ~float64
}

type I added in v0.2.0

type I interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64
}

type N added in v0.2.0

type N interface {
	I | U | F
}

type U added in v0.2.0

type U interface {
	~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64
}

Jump to

Keyboard shortcuts

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