Documentation ¶
Index ¶
- func Clamp[I constraints.Ordered](v I, min I, max I) I
- func CopyMap[K comparable, V any](m map[K]V) map[K]V
- func MapItems[K comparable, V any](m map[K]V) []V
- func MapKeys[K comparable, V any](m map[K]V) []K
- func Max[I constraints.Ordered](m I, ns ...I) I
- func Min[I constraints.Ordered](m I, ns ...I) I
- func ReverseSlice[T any](s []T)
- func SafeSub[I constraints.Unsigned](a I, b I) I
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clamp ¶
func Clamp[I constraints.Ordered](v I, min I, max I) I
func CopyMap ¶
func CopyMap[K comparable, V any](m map[K]V) map[K]V
func MapItems ¶
func MapItems[K comparable, V any](m map[K]V) []V
func MapKeys ¶
func MapKeys[K comparable, V any](m map[K]V) []K
func Max ¶
func Max[I constraints.Ordered](m I, ns ...I) I
func Min ¶
func Min[I constraints.Ordered](m I, ns ...I) I
func ReverseSlice ¶
func ReverseSlice[T any](s []T)
func SafeSub ¶ added in v1.0.1
func SafeSub[I constraints.Unsigned](a I, b I) I
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.