Documentation ¶
Index ¶
- func Contains(a []interface{}, x interface{}) bool
- func ContainsComparable(a []types.Comparable, x types.Comparable) bool
- func ContainsInt(a []int, x int) bool
- func ContainsInt64(a []int64, x int64) bool
- func ContainsString(a []string, x string) bool
- func Filter(a []interface{}, fn func(v interface{}) bool) []interface{}
- func FilterInt(a []int, fn func(v int) bool) []int
- func FilterInt64(a []int64, fn func(v int64) bool) []int64
- func FilterString(a []string, fn func(v string) bool) []string
- func FoldLeft(a []interface{}, fn func(left, right interface{}) interface{}, ...) interface{}
- func FoldRight(a []interface{}, fn func(left, right interface{}) interface{}, ...) interface{}
- func ForEach(a []interface{}, fn func(x interface{}))
- func ForEachInt(a []int, fn func(x int))
- func ForEachInt64(a []int64, fn func(x int64))
- func ForEachString(a []string, fn func(x string))
- func Map(a []interface{}, fn func(v interface{}) interface{}) []interface{}
- func UniqueInt16Slice(list []int16) []int16
- func UniqueInt32Slice(list []int32) []int32
- func UniqueInt64Slice(list []int64) []int64
- func UniqueInt8Slice(list []int8) []int8
- func UniqueIntSlice(list []int) []int
- func UniqueSlice(list []interface{}) []interface{}
- func UniqueStringSlice(list []string) []string
- type ZipItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsComparable ¶
func ContainsComparable(a []types.Comparable, x types.Comparable) bool
func ContainsInt ¶
func ContainsInt64 ¶
func ContainsString ¶
func FoldLeft ¶
func FoldLeft(a []interface{}, fn func(left, right interface{}) interface{}, initial interface{}) interface{}
func FoldRight ¶
func FoldRight(a []interface{}, fn func(left, right interface{}) interface{}, initial interface{}) interface{}
func ForEachInt ¶
func ForEachInt64 ¶
func ForEachString ¶
func UniqueInt16Slice ¶
func UniqueInt32Slice ¶
func UniqueInt64Slice ¶
func UniqueInt8Slice ¶
func UniqueIntSlice ¶
func UniqueSlice ¶
func UniqueSlice(list []interface{}) []interface{}
func UniqueStringSlice ¶
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.