package
0.0.0-20240527093011-a16d59fa0e41
Repository: https://github.com/daqiancode/myutils.git
Documentation: pkg.go.dev

# Functions

Any Returns true if all values are true.
Any Returns true if arr contain any true value.
AsBoolMap arr -> [value]bool.
Count arr -> [value]count.
ValueIndex arr -> [value]index.
AsMap arr -> [key]value.
Concat arrays with copy.
No description provided by the author
Count returns the count of value in arr.
CountBy returns the count of value in arr by given function.
No description provided by the author
Filter.
Filter returns a new slice containing the results of applying fn to each, keep filter(v, i) == true.
No description provided by the author
GroupByOne group by one value.
Index returns the index of the first instance of value in arr, or -1 if value is not present in arr.
No description provided by the author
No description provided by the author
No description provided by the author
Map.
Map returns a new slice containing the results of applying fn to each.
No description provided by the author
No description provided by the author
Reduce.
Reduce returns a new slice containing the results of applying fn to each.
Reindex 按indexes设置索引.
Remove removes the first instance of t from list.
RemoveAll removes all instances of t from list.
No description provided by the author
No description provided by the author
Sort sorts the slice according to the fileds function.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author