xslice

package
v1.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainFloat64

func ContainFloat64(s []float64, target float64) bool

ContainFloat64 check if target is in ss

func ContainInt

func ContainInt(s []int, target int) bool

ContainInt check if target is in ss

func ContainInt16

func ContainInt16(s []int16, target int16) bool

ContainInt16 check if target is in ss

func ContainInt32

func ContainInt32(s []int32, target int32) bool

ContainInt32 check if target is in ss

func ContainInt64

func ContainInt64(s []int64, target int64) bool

ContainInt64 check if target is in ss

func ContainInt8

func ContainInt8(s []int8, target int8) bool

ContainInt8 check if target is in ss

func ContainString

func ContainString(s []string, target string) bool

ContainString check if target is in ss

func ContainUint

func ContainUint(s []uint, target uint) bool

ContainUint check if target is in ss

func ContainUint16

func ContainUint16(s []uint16, target uint16) bool

ContainUint16 check if target is in ss

func ContainUint32

func ContainUint32(s []uint32, target uint32) bool

ContainUint32 check if target is in ss

func ContainUint64

func ContainUint64(s []uint64, target uint64) bool

ContainUint64 check if target is in ss

func ContainUint8

func ContainUint8(s []uint8, target uint8) bool

ContainUint8 check if target is in ss

func DiffFloat64

func DiffFloat64(s1 []float64, s2 []float64) []float64

DiffFloat64 computes the difference of two slices return a slice containing all the entries from s1 but not in s2

func DiffInt

func DiffInt(s1 []int, s2 []int) []int

DiffInt computes the difference of two slices return a slice containing all the entries from s1 but not in s2

func DiffInt16

func DiffInt16(s1 []int16, s2 []int16) []int16

DiffInt16 computes the difference of two slices return a slice containing all the entries from s1 but not in s2

func DiffInt32

func DiffInt32(s1 []int32, s2 []int32) []int32

DiffInt32 computes the difference of two slices return a slice containing all the entries from s1 but not in s2

func DiffInt64

func DiffInt64(s1 []int64, s2 []int64) []int64

DiffInt64 computes the difference of two slices return a slice containing all the entries from s1 but not in s2

func DiffInt8

func DiffInt8(s1 []int8, s2 []int8) []int8

DiffInt8 computes the difference of two slices return a slice containing all the entries from s1 but not in s2

func DiffString

func DiffString(s1 []string, s2 []string) []string

DiffString computes the difference of two slices return a slice containing all the entries from s1 but not in s2

func DiffUint

func DiffUint(s1 []uint, s2 []uint) []uint

DiffUint computes the difference of two slices return a slice containing all the entries from s1 but not in s2

func DiffUint16

func DiffUint16(s1 []uint16, s2 []uint16) []uint16

DiffUint16 computes the difference of two slices return a slice containing all the entries from s1 but not in s2

func DiffUint32

func DiffUint32(s1 []uint32, s2 []uint32) []uint32

DiffUint32 computes the difference of two slices return a slice containing all the entries from s1 but not in s2

func DiffUint64

func DiffUint64(s1 []uint64, s2 []uint64) []uint64

DiffUint64 computes the difference of two slices return a slice containing all the entries from s1 but not in s2

func DiffUint8

func DiffUint8(s1 []uint8, s2 []uint8) []uint8

DiffUint8 computes the difference of two slices return a slice containing all the entries from s1 but not in s2

func IntersectFloat64

func IntersectFloat64(s1 []float64, s2 []float64) []float64

IntersectFloat64 computes the intersection of two slices return a slice containing the entries exist in s1 and s2

func IntersectInt

func IntersectInt(s1 []int, s2 []int) []int

IntersectInt computes the intersection of two slices return a slice containing the entries exist in s1 and s2

func IntersectInt16

func IntersectInt16(s1 []int16, s2 []int16) []int16

IntersectInt16 computes the intersection of two slices return a slice containing the entries exist in s1 and s2

func IntersectInt32

func IntersectInt32(s1 []int32, s2 []int32) []int32

IntersectInt32 computes the intersection of two slices return a slice containing the entries exist in s1 and s2

func IntersectInt64

func IntersectInt64(s1 []int64, s2 []int64) []int64

IntersectInt64 computes the intersection of two slices return a slice containing the entries exist in s1 and s2

func IntersectInt8

func IntersectInt8(s1 []int8, s2 []int8) []int8

IntersectInt8 computes the intersection of two slices return a slice containing the entries exist in s1 and s2

func IntersectString

func IntersectString(s1 []string, s2 []string) []string

IntersectString computes the intersection of two slices return a slice containing the entries exist in s1 and s2

func IntersectUint

func IntersectUint(s1 []uint, s2 []uint) []uint

IntersectUint computes the intersection of two slices return a slice containing the entries exist in s1 and s2

func IntersectUint16

func IntersectUint16(s1 []uint16, s2 []uint16) []uint16

IntersectUint16 computes the intersection of two slices return a slice containing the entries exist in s1 and s2

func IntersectUint32

func IntersectUint32(s1 []uint32, s2 []uint32) []uint32

IntersectUint32 computes the intersection of two slices return a slice containing the entries exist in s1 and s2

func IntersectUint64

func IntersectUint64(s1 []uint64, s2 []uint64) []uint64

IntersectUint64 computes the intersection of two slices return a slice containing the entries exist in s1 and s2

func IntersectUint8

func IntersectUint8(s1 []uint8, s2 []uint8) []uint8

IntersectUint8 computes the intersection of two slices return a slice containing the entries exist in s1 and s2

func MergeFloat64

func MergeFloat64(s1 []float64, s2 ...[]float64) []float64

MergeFloat64 merge one or more arrays

func MergeInt

func MergeInt(s1 []int, s2 ...[]int) []int

MergeInt merge one or more arrays

func MergeInt16

func MergeInt16(s1 []int16, s2 ...[]int16) []int16

MergeInt16 merge one or more arrays

func MergeInt32

func MergeInt32(s1 []int32, s2 ...[]int32) []int32

MergeInt32 merge one or more arrays

func MergeInt64

func MergeInt64(s1 []int64, s2 ...[]int64) []int64

MergeInt64 merge one or more arrays

func MergeInt8

func MergeInt8(s1 []int8, s2 ...[]int8) []int8

MergeInt8 merge one or more arrays

func MergeString

func MergeString(s1 []string, s2 ...[]string) []string

MergeString merge one or more arrays

func MergeUint

func MergeUint(s1 []uint, s2 ...[]uint) []uint

MergeUint merge one or more arrays

func MergeUint16

func MergeUint16(s1 []uint16, s2 ...[]uint16) []uint16

MergeUint16 merge one or more arrays

func MergeUint32

func MergeUint32(s1 []uint32, s2 ...[]uint32) []uint32

MergeUint32 merge one or more arrays

func MergeUint64

func MergeUint64(s1 []uint64, s2 ...[]uint64) []uint64

MergeUint64 merge one or more arrays

func MergeUint8

func MergeUint8(s1 []uint8, s2 ...[]uint8) []uint8

MergeUint8 merge one or more arrays

func RemoveFloat64

func RemoveFloat64(s []float64, target float64) []float64

RemoveFloat64 remove empty target elements from ss

func RemoveInt

func RemoveInt(s []int, target int) []int

RemoveInt remove empty target elements from ss

func RemoveInt16

func RemoveInt16(s []int16, target int16) []int16

RemoveInt16 remove empty target elements from ss

func RemoveInt32

func RemoveInt32(s []int32, target int32) []int32

RemoveInt32 remove empty target elements from ss

func RemoveInt64

func RemoveInt64(s []int64, target int64) []int64

RemoveInt64 remove empty target elements from ss

func RemoveInt8

func RemoveInt8(s []int8, target int8) []int8

RemoveInt8 remove empty target elements from ss

func RemoveString

func RemoveString(s []string, target string) []string

RemoveString remove empty target elements from ss

func RemoveUint

func RemoveUint(s []uint, target uint) []uint

RemoveUint remove empty target elements from ss

func RemoveUint16

func RemoveUint16(s []uint16, target uint16) []uint16

RemoveUint16 remove empty target elements from ss

func RemoveUint32

func RemoveUint32(s []uint32, target uint32) []uint32

RemoveUint32 remove empty target elements from ss

func RemoveUint64

func RemoveUint64(s []uint64, target uint64) []uint64

RemoveUint64 remove empty target elements from ss

func RemoveUint8

func RemoveUint8(s []uint8, target uint8) []uint8

RemoveUint8 remove empty target elements from ss

func ReverseFloat64

func ReverseFloat64(s []float64) []float64

ReverseFloat64 reverse the input slice

func ReverseInt

func ReverseInt(s []int) []int

ReverseInt reverse the input slice

func ReverseInt16

func ReverseInt16(s []int16) []int16

ReverseInt16 reverse the input slice

func ReverseInt32

func ReverseInt32(s []int32) []int32

ReverseInt32 reverse the input slice

func ReverseInt64

func ReverseInt64(s []int64) []int64

ReverseInt64 reverse the input slice

func ReverseInt8

func ReverseInt8(s []int8) []int8

ReverseInt8 reverse the input slice

func ReverseString

func ReverseString(s []string) []string

ReverseString reverse the input slice

func ReverseUint

func ReverseUint(s []uint) []uint

ReverseUint reverse the input slice

func ReverseUint16

func ReverseUint16(s []uint16) []uint16

ReverseUint16 reverse the input slice

func ReverseUint32

func ReverseUint32(s []uint32) []uint32

ReverseUint32 reverse the input slice

func ReverseUint64

func ReverseUint64(s []uint64) []uint64

ReverseUint64 reverse the input slice

func ReverseUint8

func ReverseUint8(s []uint8) []uint8

ReverseUint8 reverse the input slice

func SortFloat64

func SortFloat64(s []float64) []float64

SortFloat64 sort float64 slice asc

func SortInt

func SortInt(s []int) []int

SortInt sort int slice asc

func SortInt16

func SortInt16(s []int16) []int16

SortInt16 sort int16 slice asc

func SortInt32

func SortInt32(s []int32) []int32

SortInt32 sort int32 slice asc

func SortInt64

func SortInt64(s []int64) []int64

SortInt64 sort int64 slice asc

func SortInt8

func SortInt8(s []int8) []int8

SortInt8 sort int8 slice asc

func SortString

func SortString(s []string) []string

SortString sort string slice asc

func SortUint

func SortUint(s []uint) []uint

SortUint sort uint slice asc

func SortUint16

func SortUint16(s []uint16) []uint16

SortUint16 sort uint16 slice asc

func SortUint32

func SortUint32(s []uint32) []uint32

SortUint32 sort uint32 slice asc

func SortUint64

func SortUint64(s []uint64) []uint64

SortUint64 sort int64 slice asc

func SortUint8

func SortUint8(s []uint8) []uint8

SortUint8 sort uint8 slice asc

func UniqueFloat64

func UniqueFloat64(s1 []float64) []float64

UniqueFloat64 Removes duplicate values from slice

func UniqueInt

func UniqueInt(s1 []int) []int

UniqueInt Removes duplicate values from slice

func UniqueInt16

func UniqueInt16(s1 []int16) []int16

UniqueInt16 Removes duplicate values from slice

func UniqueInt32

func UniqueInt32(s1 []int32) []int32

UniqueInt32 Removes duplicate values from slice

func UniqueInt64

func UniqueInt64(s1 []int64) []int64

UniqueInt64 Removes duplicate values from slice

func UniqueInt8

func UniqueInt8(s1 []int8) []int8

UniqueInt8 Removes duplicate values from slice

func UniqueString

func UniqueString(s1 []string) []string

UniqueString Removes duplicate values from slice

func UniqueUint

func UniqueUint(s1 []uint) []uint

UniqueUint Removes duplicate values from slice

func UniqueUint16

func UniqueUint16(s1 []uint16) []uint16

UniqueUint16 Removes duplicate values from slice

func UniqueUint32

func UniqueUint32(s1 []uint32) []uint32

UniqueUint32 Removes duplicate values from slice

func UniqueUint64

func UniqueUint64(s1 []uint64) []uint64

UniqueUint64 Removes duplicate values from slice

func UniqueUint8

func UniqueUint8(s1 []uint8) []uint8

UniqueUint8 Removes duplicate values from slice

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL