# Functions
Append adds the given items to the end of a given slice and returns the result.
Chunk returns a new slice containing the items of a given slice chunked into smaller slices of a given size.
Concat returns a new slice containing the items of all given slices.
Contains returns true if a given slice contains the given item, false otherwise.
Difference returns a new slice containing the items of a given slice that are not present in the other given slice.
Each calls the given function for each item of a given slice.
Fill returns a given slice with the given value.
Filter returns a new slice containing the items of a given slice that satisfy the given predicate function.
Find returns the first item of a given slice that satisfies the given predicate function, or a zero value and false, if no item satisfies the predicate function.
FindLast returns the last item of a given slice that satisfies the given predicate function, or a zero value and false, if no item satisfies the predicate function.
First returns the first item of a given slice, or a zero value and false if the slice is empty.
GroupBy returns a new map containing the items of a given slice grouped by the result of the given function.
Index returns the index of the first item of a given slice that satisfies the given predicate function, or -1 and false if no item satisfies the predicate function.
IndexOf returns the index of the first occurrence of the given item in a given slice, or -1 if the item is not found.
Intersect returns a new slice containing the items of a given slice that are also present in the other given slice.
IsEmpty returns true if a given slice is empty, false otherwise.
IsNotEmpty returns true if a given slice is not empty, false otherwise.
KeyMap returns a new map containing the results of applying the given function to each item of a given slice.
Last returns the last item of a given slice, or a zero value and false if the slice is empty.
LastIndex returns the index of the last item of a given slice that satisfies the given predicate function, or -1 and false if no item satisfies the predicate function.
LastIndexOf returns the index of the last occurrence of the given item in a given slice, or -1 if the item is not found.
Length returns the length of a given slice.
Map returns a new slice containing the results of applying the given function to each item of a given slice.
Max returns the maximum item of a given slice.
Min returns the minimum item of a given slice.
Only returns a new slice only containing the items of a given
Only([]int{1, 2, 3}, 2, 3) // []int{2, 3} Only([]string{"a", "b", "c"}, "b", "c") // []string{"b", "c"}.
Partition returns two new slices, the first containing the items of a given slice that satisfy the given predicate function, and the second containing the items that do not satisfy the predicate function.
Prepend adds the given items to the beginning of a given slice and returns the result.
Random returns a random item of a given slice.
Reduce applies the given function against an accumulator and each element in the slice to reduce it to a single value.
Reverse returns a new slice containing the items of a given slice in reverse order.
Shuffle returns a new slice containing the items of a given slice shuffled.
Sum returns the sum of the items of a given slice.
Unique returns a new slice containing the unique items of a given slice.
UniqueBy returns a new slice containing the unique items of a given slice based on the given function.
Without returns a new slice without the items of a given slice.