# Functions
AllFunc returns true if predicate(v) returns true for all values v in s.
AnyFunc returns true if predicate(v) returns true for any value v in s.
Apply applies the given function to all elements of the input slice.
Concatenate returns a single slice created by concatenating the input slices.
No description provided by the author
Flatten merges a slice of slices into a single slice.
GroupByFunc groups the elements e_1, ..., e_n of s into separate slices by keyFunc(e).
GroupByFuncUnique returns a map keyFunc(e) to e for each element e in s.
Map Returns a slice consisting of the results of applying the given function to the elements of the input slice.
MapAndGroupByFuncs groups the elements e_1, ..., e_n of s into separate slices by keyFunc(e) and then maps those resulting elements by mapFunc(e).
Partition partitions the elements of s into n non-overlapping slices, such that some slices have len(s)/n+1 items and some len(s)/n items.
PartitionToMaxLen partitions the elements of s into non-overlapping slices, such that each such slice contains at most maxLen elements.
Pop removes the last item from s and returns it.
Repeat returns a slice []T of length n*len(vs) consisting of n copies of vs.
Shuffle shuffles s.
No description provided by the author
Unique returns a copy of s with duplicate elements removed, keeping only the first occurrence.