# README
sliceutil
The package contains various helpers to interact with slices
# Functions
Clone a slice through built-in copy.
Contains if a slice contains an element.
ContainsItems checks if s1 contains s2.
Dedupe removes duplicates from a slice of elements preserving the order.
Diff calculates the extra elements between two sequences.
ElementsMatch asserts that the specified listA(array, slice...) is equal to specified listB(array, slice...) ignoring the order of the elements.
Equal checks if the items of two slices are equal respecting the order.
FirstNonZero function takes a slice of comparable type inputs, and returns the first non-zero element in the slice along with a boolean value indicating if a non-zero element was found or not.
IsEmpty checks if the slice has length zero.
Merge and dedupe multiple items.
Merge and dedupe multiple items into a.
PickRandom item from a slice of elements.
PruneEmptyStrings from the slice.
PruneEqual removes items from the slice equal to the specified value.
ToInt converts a slice of strings to a slice of ints.
VisitRandom visits all items in the slice in random order and calls the specified function for each item.
VisitRandomZero visits all items in the slice in random order without allocations and calls the specified function for each item.
VisitSequential visits all items in the slice in sequential order and calls the specified function for each item.
# Type aliases
No description provided by the author