# Functions
BatchSlice splits a slice in batches.
ConcatSlices returns a new slice built by appending all values from the given slices in order.
FilterMap copies a map including only (k, v) pairs for which the predicate returns true.
FilterSlice makes a shallow copy of a slice including only elements for which the predicate returns true.
GetMapEntriesSortedByKey returns a slice built by appending all (key, value) in the map, sorted by key.
GetMapEntriesSortedByValue returns a slice built by appending all (key, value) in the map, sorted by value.
GetMapValuesSortedByKey returns a slice built by appending all values in the map, sorted by their key.
GetSortedMapKeys returns a slice built by appending all keys in the map and sorting them.
GetSortedMapValues returns a slice built by appending all values in the map and sorting them.
IsAnyNil returns true if the given value is a "nil" of any type.
MapPtr returns a copy of the given map with each value passed through [Ptr].
MapPtrZeroToNil returns a copy of the given map with each value passed through [PtrZeroToNil].
MapValNilToDef returns a copy of the given map with each value passed through [ValNilToDef].
MapValNilToZero returns a copy of the given map with each value passed through [ValNilToZero].
Max returns the highest value.
MergeMaps returns a new map built by setting all key/value pairs from the given maps in order.
Min returns the lowest value.
Ptr returns a pointer to the given value.
PtrIfTrue returns a pointer to the given value of cond is true, nil otherwise.
PtrZeroToNil returns a pointer to the given value if different from the zero-value, nil otherwise.
PtrZeroToNilIfTrue returns a pointer to the given value if different from the zero-value and cond is true, nil otherwise.
SafeSliceIndexDef indexes a slice, supports negative indexes (from end), and returns a default value instead of panic.
SafeSliceIndexPtr indexes a slice, supports negative indexes (from end), and returns pointer to value instead of panic.
SafeSliceIndexZero indexes a slice, supports negative indexes (from end), and returns a zero-value instead of panic.
ShallowCopyMap makes a shallow copy of a map.
ShallowCopySlice makes a shallow copy of a slice.
SlicePtr returns a copy of the given slice with each element passed through [Ptr].
SlicePtrZeroToNil returns a copy of the given slice with each element passed through [PtrZeroToNil].
SliceToStructMap converts a slice to struct map.
SliceValNilToDef returns a copy of the given slice with each element passed through [ValNilToDef].
SliceValNilToZero returns a copy of the given slice with each element passed through [ValNilToZero].
Ternary returns "vT" if "cond" is true, "vF" otherwise.
TransformMapValues returns a new map built by passing all values through the given function, while the keys remain stable.
TransformSlice returns a new slice built by passing all elements through the given function.
ValNilToDef returns the value of the given pointer if found, the given default value otherwise.
ValNilToZero returns the value of the given pointer if found, a zero-value of the same type otherwise.