xslices

package module
v0.0.0-...-e24f453 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 1 Imported by: 12

README

xslices

Go Reference

Supplementary functions of golang.org/x/exp/slices.

Installation

$ go get -u github.com/go-aie/xslices

Documentation

Check out the documentation.

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Concat

func Concat[E any](ss ...[]E) []E

func Float64ToNumber

func Float64ToNumber[E Number](s []float64) []E

func Indices

func Indices[E comparable](s []E, v E) []int

func Max

func Max[T constraints.Ordered](a, b T) T

func Min

func Min[T constraints.Ordered](a, b T) T

func NumberToFloat64

func NumberToFloat64[E Number](s []E) []float64

func NumberToInt64

func NumberToInt64[E Number](s []E) []int64

func Range

func Range(start, end int) []int

func Repeat

func Repeat[E any](s []E, n int) []E

Types

type Number

type Number interface {
	constraints.Integer | constraints.Float
}

Jump to

Keyboard shortcuts

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