Documentation
¶
Overview ¶
Package util is for general purpose functions that can be useful for any package in the repo.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReverseSlice ¶
func ReverseSlice[T comparable](s []T) []T
ReverseSlice returns a slice of the same type with the elements in the reverse order. A new copy is returned and the backing array of the input will not be modified.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.