package
1.0.2
Repository: https://github.com/techidea8/codectl.git
Documentation: pkg.go.dev

# Functions

Any item is meet the condition.
No description provided by the author
Distinct remove the same items.
Equal slice1 equal slice2.
EqualFunc slice1 equal slice2 with func.
Every item is meet the condition.
Fill items to slice.
Filter items that are not meet the condition.
Find first item that meet the condition.
FindIndex first index that meet the condition.
FindLast item that meet the condition.
FindLastIndex that meet the condition.
ForEach item execute action.
Frequencies returns a map with the unique values of the collection as keys and their frequencies as the values.
No description provided by the author
No description provided by the author
Includes items in slice.
IndexOf slice[i] == item.
IndexOfAll slice[i] == item.
No description provided by the author
LastIndexOf slice[i] == item.
Map []T1 to []T2 by mapper.
Reduce slice to a value.
ReduceRight slice to a value.
RemoveDuplicate remove duplicate items.
Reverse slice.
Shift remove first item.
Shuffle slice.
Sort sorts the slice given the provided condition function.
SortStable sorts the slice given the provided condition function, keeping equal elements in their original order.
ToMap iterates the slice to map following the keyFunc and valueFunc.
ToSlice iterates map's key and value to generate a new slice.
Unshift add items from head.

# Type aliases

No description provided by the author