package
0.2.1
Repository: https://github.com/kevinello/benchvisual.git
Documentation: pkg.go.dev

# Functions

AllMatch returns true if all elements pass the predicate function.
AnyMatch returns true if any element passes the predicate function.
Contains returns true if find appears in slice.
Difference returns a new map of key/value pairs that only appear in left.
Filter returns a new slice consisting of all elements that pass the predicate function.
FirstMatch returns the first element that passes the predicate function.
GroupBy returns a map that is keyed by keySelector and contains a slice of elements returned by valSelector.
IndexOf returns the index of find if it appears in slice.
Intersect returns a new map of key/value pairs where the key exists in both left and right.
Keys returns a slice of all keys in m.
LastMatch returns the last element that passes the predicate function.
Map returns a new slice where each element is the result of fn for the corresponding element in the original slice.
MapSliceToSet Map a slice to a set using a function f @param s []S @param f func(s S) T @return Set @author kevineluo @update 2023-03-01 04:42:04.
NewSet Create a new empty set with the specified initial size.
Reduce return a result that.
SliceDifference Difference of two slices(A-B).
SliceEqual judge if two slice is equal(unique element) @param a []T @param b []T @return bool @author kevineluo @update 2023-03-01 04:46:22.
SliceIntersection Intersection of two slices, The provided slices do not need to be unique.
SliceToSet Create a Set from a slice.
SliceUnion Union two slices, The provided slices do not need to be unique.
ToMap return a map that is keyed keySelector and has the value of valSelector for each element in slice.
ToSet returns a map keyed by keySelector and contains a value of an empty struct.
Union returns a new map of all key/value pairs in left and right.
UnionInPlace modifies left to include key/value pairs in right.
Uniq returns a new slice that uniques in values.
Values returns a slice of all values in m.

# Type aliases

Set A collection of unique comparable items.