Documentation ¶
Index ¶
- func Contains(haystack []generics.T1, needle generics.T1) bool
- func ContainsString(haystack []string, needle string) bool
- func Diff(xs, ys []generics.T1) []generics.T1
- func DiffInt(xs, ys []int) []int
- func Merge(srcs ...<-chan generics.T1) <-chan generics.T1
- func MergeInt(srcs ...<-chan int) <-chan int
- func Sort(xs []generics.T1)
- func SortInt8(xs []int8)
- func Sum(xs []generics.T1) generics.T1
- func SumComplex128(xs []complex128) complex128
- func SumComplex64(xs []complex64) complex64
- func SumFloat32(xs []float32) float32
- func SumFloat64(xs []float64) float64
- func SumInt(xs []int) int
- func SumInt16(xs []int16) int16
- func SumInt32(xs []int32) int32
- func SumInt64(xs []int64) int64
- func SumInt8(xs []int8) int8
- func SumUint(xs []uint) uint
- func SumUint16(xs []uint16) uint16
- func SumUint32(xs []uint32) uint32
- func SumUint64(xs []uint64) uint64
- func SumUint8(xs []uint8) uint8
- type List
- type ListFloat32
- type ListInt32
- type Pair
- type PairInt8Int16
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsString ¶
ContainsString returns whether or not the list contains the element
func Merge ¶
Merge merges all the src channels into a single channel. If all of the src channels are closed, the returned channel will also be closed.
Types ¶
type List ¶
type List struct {
// contains filtered or unexported fields
}
A List is a list of elements
type ListFloat32 ¶
type ListFloat32 struct {
// contains filtered or unexported fields
}
func (*ListFloat32) Append ¶
func (l *ListFloat32) Append(els ...float32)
Append appends elements to the list
func (*ListFloat32) Slice ¶
func (l *ListFloat32) Slice(from, to int) *ListFloat32
Slice slices the list
type ListInt32 ¶
type ListInt32 struct {
// contains filtered or unexported fields
}
type Pair ¶
type Pair struct { // Fst is the first value Fst generics.T1 // Snd is the second value Snd generics.T2 }
A Pair is a pair of values
type PairInt8Int16 ¶
type PairInt8Int16 struct { // Fst is the first value Fst int8 // Snd is the second value Snd int16 }
func ZipInt8Int16 ¶
func ZipInt8Int16(xs []int8, ys []int16) []PairInt8Int16
ZipInt8Int16 takes in two slices and converts them into a slice of pairs
Click to show internal directories.
Click to hide internal directories.