Documentation ¶
Overview ¶
Package cmpx has code that will likely land in a future version of Go, but we want sooner.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Or ¶
func Or[T comparable](list ...T) T
Or returns the first non-zero element of list, or else returns the zero T.
This is the proposal from https://github.com/golang/go/issues/60204#issuecomment-1581245334.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.