Documentation ¶
Index ¶
- func Choose[K Number, T any](idx K, a ...T) T
- func Coalesce[T any](a ...*T) *T
- func FromP[T any](a *T) T
- func Greatest[T constraints.Ordered](a T, b ...T) T
- func Iif[T any](cond bool, ifT T, ifF T) T
- func In[T constraints.Ordered](a T, b ...T) bool
- func Least[T constraints.Ordered](a T, b ...T) T
- func Max[T constraints.Ordered](a T, b T) T
- func Min[T constraints.Ordered](a T, b T) T
- func ToP[T any](a T) *T
- type Number
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Greatest ¶
func Greatest[T constraints.Ordered](a T, b ...T) T
func In ¶
func In[T constraints.Ordered](a T, b ...T) bool
func Least ¶
func Least[T constraints.Ordered](a T, b ...T) T
func Max ¶
func Max[T constraints.Ordered](a T, b T) T
func Min ¶
func Min[T constraints.Ordered](a T, b T) T
Types ¶
type Number ¶
type Number interface { constraints.Integer | constraints.Float }
Click to show internal directories.
Click to hide internal directories.