package
0.0.0-20170323211221-abd1f791f5ee
Repository: https://github.com/aclements/go-gg.git
Documentation: pkg.go.dev
# Functions
ArgMax returns the index of the maximum value in v.
ArgMin returns the index of the minimum value in v.
CanSort returns whether the value v can be sorted.
Concat returns the concatenation of all of ss.
Contains reports whether val is within s.
Convert converts each element in from and assigns it to *to.
Cycle constructs a slice of length length by repeatedly concatenating s to itself.
Index returns the index of the first instance of val in s, or -1 if val is not present in s.
LastIndex returns the index of the last instance of val in s, or -1 if val is not present in s.
Max returns the maximum value in v.
Min returns the minimum value in v.
Nub returns v with duplicates removed.
NubAppend is equivalent to appending all of the slices in vs and then calling Nub on the result, but more efficient.
Repeat returns a slice consisting of length copies of v.
Select returns a slice w such that w[i] = v[indexes[i]].
SelectInto assigns out[i] = in[indexes[i]].
Sort sorts v in increasing order.
Sorter returns a sort.Interface for sorting v.
# Interfaces
T is a Go slice value of type []U.