Documentation
¶
Index ¶
- func DifferenceString(args ...[]string) []string
- func DifferenceStringArr(arr [][]string) []string
- func DifferenceUint64(args ...[]uint64) []uint64
- func DifferenceUint64Arr(arr [][]uint64) []uint64
- func DistinctIntersectUint64(args ...[]uint64) []uint64
- func DistinctIntersectUint64Arr(arr [][]uint64) []uint64
- func DistinctString(arg []string) []string
- func DistinctUint64(arg []uint64) []uint64
- func IntersectString(args ...[]string) []string
- func IntersectStringArr(arr [][]string) []string
- func IntersectUint64(args ...[]uint64) []uint64
- func IntersectUint64Arr(arr [][]uint64) []uint64
- func SortedIntersectUint64(args ...[]uint64) []uint64
- func SortedIntersectUint64Arr(arr [][]uint64) []uint64
- func UnionString(args ...[]string) []string
- func UnionStringArr(arr [][]string) []string
- func UnionUint64(args ...[]uint64) []uint64
- func UnionUint64Arr(arr [][]uint64) []uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DifferenceString ¶
find the difference of two arrays. e.g. a1 = [1 2 2 4 6]; a2 = [2 4 5] Difference(a1, a2) >> [5 6]
func DifferenceStringArr ¶
find the difference of two arrays using a multidimensional array as inputs
func DifferenceUint64 ¶
find the difference of two arrays. e.g. a1 = [1 2 2 4 6]; a2 = [2 4 5] Difference(a1, a2) >> [5 6]
func DifferenceUint64Arr ¶
find the difference of two arrays using a multidimensional array as inputs
func DistinctIntersectUint64 ¶
find the intersection of two arrays of distinct vals.
func DistinctIntersectUint64Arr ¶
find the intersection of two distinct arrays using a multidimensional array as inputs
func DistinctString ¶
Remove duplicate values from one array. e.g. a1 = [1 2 2 4 6] Distinct(a1) >> [1 2 4 6]
func DistinctUint64 ¶
Remove duplicate values from one array. e.g. a1 = [1 2 2 4 6] Distinct(a1) >> [1 2 4 6]
func IntersectString ¶
find the intersection of two arrays. e.g. a1 = [1 2 2 4 6]; a2 = [2 4 5] Intersect(a1, a2) >> [2 4]
func IntersectStringArr ¶
find the intersection of two arrays using a multidimensional array as inputs
func IntersectUint64 ¶
find the intersection of two arrays. e.g. a1 = [1 2 2 4 6]; a2 = [2 4 5] Intersect(a1, a2) >> [2 4]
func IntersectUint64Arr ¶
find the intersection of two arrays using a multidimensional array as inputs
func SortedIntersectUint64 ¶
find the intersection of two sorted arrays assumes no dupes! NOTE(@adam-hanna): further improve performance by sorting from smallest to largest array length?
func SortedIntersectUint64Arr ¶
find the intersection of two arrays using a multidimensional array as inputs assumes no dupes and only works on arrays which are sorted
func UnionString ¶
find the union of two arrays. e.g. a1 = [1 2 2 4 6]; a2 = [2 4 5] Union(a1, a2) >> [1 2 4 5 6]
func UnionStringArr ¶
find the union of two arrays using a multidimensional array as inputs
func UnionUint64 ¶
find the union of two arrays. e.g. a1 = [1 2 2 4 6]; a2 = [2 4 5] Union(a1, a2) >> [1 2 4 5 6]
func UnionUint64Arr ¶
find the union of two arrays using a multidimensional array as inputs
Types ¶
This section is empty.