Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstOf ¶
func FirstOf[T comparable](xs ...T) T
FirstOf returns the first argument that is not the zero value. If all arguments are zero, it returns the zero value.
func FirstOfBy ¶
FirstOfBy returns the first argument that satisfying p. If all arguments are zero, it returns the zero value.
func LastOf ¶
func LastOf[T comparable](xs ...T) T
LastOf returns the last argument that is not the zero value. If all arguments are zero, it returns the zero value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.