Documentation
¶
Index ¶
- func Between[A any](O Ord[A]) func(A, A) func(A) bool
- func Clamp[A any](o Ord[A]) func(A, A) func(A) A
- func Contramap[A, B any](f func(B) A) func(Ord[A]) Ord[B]
- func Geq[A any](O Ord[A]) func(A) func(A) bool
- func Gt[A any](O Ord[A]) func(A) func(A) bool
- func Leq[A any](O Ord[A]) func(A) func(A) bool
- func Lt[A any](O Ord[A]) func(A) func(A) bool
- func Max[A any](o Ord[A]) func(A, A) A
- func MaxSemigroup[A any](O Ord[A]) S.Semigroup[A]
- func Min[A any](o Ord[A]) func(A, A) A
- func MinSemigroup[A any](O Ord[A]) S.Semigroup[A]
- func Monoid[A any]() M.Monoid[Ord[A]]
- func Semigroup[A any]() S.Semigroup[Ord[A]]
- type Ord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Between ¶
Between tests whether a value is between a minimum (inclusive) and a maximum (exclusive)
func Max ¶
Max takes the maximum of two values. If they are considered equal, the first argument is chosen
func MaxSemigroup ¶
MaxSemigroup returns a semigroup where `concat` will return the maximum, based on the provided order.
func Min ¶
Min takes the minimum of two values. If they are considered equal, the first argument is chosen
func MinSemigroup ¶
MaxSemigroup returns a semigroup where `concat` will return the minimum, based on the provided order.
Types ¶
type Ord ¶
func FromCompare ¶
MakeOrd creates an instance of an Ord from a compare function
func FromStrictCompare ¶
FromStrictCompare implements the ordering based on the built in native order
Click to show internal directories.
Click to hide internal directories.