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: 8 modules, 12 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址