Documentation
¶
Index ¶
- func Fst[a, b any](p Data[a, b]) a
- func Map[leftTarget, rightTarget, a, b any](pair Data[a, b]) mapper[a, b, leftTarget, rightTarget]
- func Snd[a, b any](p Data[a, b]) b
- type Data
- func Ascend[a cmp.Ordered](p Data[a, a]) Data[a, a]
- func Descend[a cmp.Ordered](p Data[a, a]) Data[a, a]
- func Make[a, b any](fst a, snd b) Data[a, b]
- func Max[a, b interface{ ... }](p1, p2 Data[a, b]) Data[a, b]
- func MaxPositive[a, b interface{ ... }](p1, p2 Data[a, b]) Data[a, b]
- func Min[a, b interface{ ... }](p1, p2 Data[a, b]) Data[a, b]
- func MinPositive[a, b interface{ ... }](p1, p2 Data[a, b]) Data[a, b]
- func WeakenRange[a interface{ ... }](p1, p2 Data[a, a]) Data[a, a]
- type EmbedsPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Data ¶
type Data[a, b any] struct { // contains filtered or unexported fields }
func WeakenRange ¶
widens the range of the pair, reordering the values if necessary in ascending order
type EmbedsPair ¶
Click to show internal directories.
Click to hide internal directories.