github.com/Aoi-hosizora/ahlib@v1.5.1-0.20230404072829-241b93cf91c7/xslice/README.md (about) 1 # xslice 2 3 ## Dependencies 4 5 + (xtesting) 6 7 ## Documents 8 9 ### Types 10 11 + `type Equaller func` 12 + `type Lesser func` 13 14 ### Variables 15 16 + None 17 18 ### Constants 19 20 + None 21 22 ### Functions 23 24 + `func ShuffleSelf(slice []interface{})` 25 + `func Shuffle(slice []interface{}) []interface{}` 26 + `func ShuffleSelfG(slice interface{})` 27 + `func ShuffleG(slice interface{}) interface{}` 28 + `func ReverseSelf(slice []interface{})` 29 + `func Reverse(slice []interface{}) []interface{}` 30 + `func ReverseSelfG(slice interface{})` 31 + `func ReverseG(slice interface{}) interface{}` 32 + `func SortSelf(slice []interface{}, less Lesser)` 33 + `func Sort(slice []interface{}, less Lesser) []interface{}` 34 + `func SortSelfG(slice interface{}, less Lesser)` 35 + `func SortG(slice interface{}, less Lesser) interface{}` 36 + `func StableSortSelf(slice []interface{}, less Lesser)` 37 + `func StableSort(slice []interface{}, less Lesser) []interface{}` 38 + `func StableSortSelfG(slice interface{}, less Lesser)` 39 + `func StableSortG(slice interface{}, less Lesser) interface{}` 40 + `func IndexOf(slice []interface{}, value interface{}) int` 41 + `func IndexOfWith(slice []interface{}, value interface{}, equaller Equaller) int` 42 + `func IndexOfG(slice interface{}, value interface{}) int` 43 + `func IndexOfWithG(slice interface{}, value interface{}, equaller Equaller) int` 44 + `func LastIndexOf(slice []interface{}, value interface{}) int` 45 + `func LastIndexOfWith(slice []interface{}, value interface{}, equaller Equaller) int` 46 + `func LastIndexOfG(slice interface{}, value interface{}) int` 47 + `func LastIndexOfWithG(slice interface{}, value interface{}, equaller Equaller) int` 48 + `func Contains(slice []interface{}, value interface{}) bool` 49 + `func ContainsWith(slice []interface{}, value interface{}, equaller Equaller) bool` 50 + `func ContainsG(slice interface{}, value interface{}) bool` 51 + `func ContainsWithG(slice interface{}, value interface{}, equaller Equaller) bool` 52 + `func Count(slice []interface{}, value interface{}) int` 53 + `func CountWith(slice []interface{}, value interface{}, equaller Equaller) int` 54 + `func CountG(slice interface{}, value interface{}) int` 55 + `func CountWithG(slice interface{}, value interface{}, equaller Equaller) int` 56 + `func Insert(slice []interface{}, index int, values ...interface{}) []interface{}` 57 + `func InsertSelf(slice []interface{}, index int, values ...interface{}) []interface{}` 58 + `func InsertG(slice interface{}, index int, values ...interface{}) interface{}` 59 + `func InsertSelfG(slice interface{}, index int, values ...interface{}) interface{}` 60 + `func Delete(slice []interface{}, value interface{}, n int) []interface{}` 61 + `func DeleteWith(slice []interface{}, value interface{}, n int, equaller Equaller) []interface{}` 62 + `func DeleteG(slice interface{}, value interface{}, n int) interface{}` 63 + `func DeleteWithG(slice interface{}, value interface{}, n int, equaller Equaller) interface{}` 64 + `func DeleteAll(slice []interface{}, value interface{}) []interface{}` 65 + `func DeleteAllWith(slice []interface{}, value interface{}, equaller Equaller) []interface{}` 66 + `func DeleteAllG(slice interface{}, value interface{}) interface{}` 67 + `func DeleteAllWithG(slice interface{}, value interface{}, equaller Equaller) interface{}` 68 + `func DeleteSelf(slice []interface{}, value interface{}, n int) []interface{}` 69 + `func DeleteSelfWith(slice []interface{}, value interface{}, n int, equaller Equaller) []interface{}` 70 + `func DeleteSelfG(slice interface{}, value interface{}, n int) interface{}` 71 + `func DeleteSelfWithG(slice interface{}, value interface{}, n int, equaller Equaller) interface{}` 72 + `func DeleteAllSelf(slice []interface{}, value interface{}) []interface{}` 73 + `func DeleteAllSelfWith(slice []interface{}, value interface{}, equaller Equaller) []interface{}` 74 + `func DeleteAllSelfG(slice interface{}, value interface{}) interface{}` 75 + `func DeleteAllSelfWithG(slice interface{}, value interface{}, equaller Equaller) interface{}` 76 + `func ContainsAll(list, subset []interface{}) bool` 77 + `func ContainsAllWith(list, subset []interface{}, equaller Equaller) bool` 78 + `func ContainsAllG(list, subset interface{}) bool` 79 + `func ContainsAllWithG(list, subset interface{}, equaller Equaller) bool` 80 + `func Diff(slice1, slice2 []interface{}) []interface{}` 81 + `func DiffWith(slice1, slice2 []interface{}, equaller Equaller) []interface{}` 82 + `func DiffG(slice1, slice2 interface{}) interface{}` 83 + `func DiffWithG(slice1, slice2 interface{}, equaller Equaller) interface{}` 84 + `func Union(slice1, slice2 []interface{}) []interface{}` 85 + `func UnionWith(slice1, slice2 []interface{}, equaller Equaller) []interface{}` 86 + `func UnionG(slice1, slice2 interface{}) interface{}` 87 + `func UnionWithG(slice1, slice2 interface{}, equaller Equaller) interface{}` 88 + `func Intersect(slice1, slice2 []interface{}) []interface{}` 89 + `func IntersectWith(slice1, slice2 []interface{}, equaller Equaller) []interface{}` 90 + `func IntersectG(slice1, slice2 interface{}) interface{}` 91 + `func IntersectWithG(slice1, slice2 interface{}, equaller Equaller) interface{}` 92 + `func Deduplicate(slice []interface{}) []interface{}` 93 + `func DeduplicateWith(slice []interface{}, equaller Equaller) []interface{}` 94 + `func DeduplicateG(slice interface{}) interface{}` 95 + `func DeduplicateWithG(slice interface{}, equaller Equaller) interface{}` 96 + `func DeduplicateSelf(slice []interface{}) []interface{}` 97 + `func DeduplicateSelfWith(slice []interface{}, equaller Equaller) []interface{}` 98 + `func DeduplicateSelfG(slice interface{}) interface{}` 99 + `func DeduplicateSelfWithG(slice interface{}, equaller Equaller) interface{}` 100 + `func Compact(slice []interface{}) []interface{}` 101 + `func CompactWith(slice []interface{}, equaller Equaller) []interface{}` 102 + `func CompactG(slice interface{}) interface{}` 103 + `func CompactWithG(slice interface{}, equaller Equaller) interface{}` 104 + `func CompactSelf(slice []interface{}) []interface{}` 105 + `func CompactSelfWith(slice []interface{}, equaller Equaller) []interface{}` 106 + `func CompactSelfG(slice interface{}) interface{}` 107 + `func CompactSelfWithG(slice interface{}, equaller Equaller) interface{}` 108 + `func Equal(slice1, slice2 []interface{}) bool` 109 + `func EqualWith(slice1, slice2 []interface{}, equaller Equaller) bool` 110 + `func EqualG(slice1, slice2 interface{}) bool` 111 + `func EqualWithG(slice1, slice2 interface{}, equaller Equaller) bool` 112 + `func ElementMatch(slice1, slice2 []interface{}) bool` 113 + `func ElementMatchWith(slice1, slice2 []interface{}, equaller Equaller) bool` 114 + `func ElementMatchG(slice1, slice2 interface{}) bool` 115 + `func ElementMatchWithG(slice1, slice2 interface{}, equaller Equaller) bool` 116 + `func Repeat(value interface{}, count uint) []interface{}` 117 + `func RepeatG(value interface{}, count uint) interface{}` 118 119 ### Methods 120 121 + None