# Functions
Abs returns the absolute value of last.
Clamp returns the value between boundary [lo,hi], as v < lo ? v : hi > v : hi : v.
Compare returns an integer comparing two elements.
Dim returns the maximum of x-y or 0.
IsNaN is a copy of math.IsNaN to avoid a dependency on the math package.
IsNewer implements RFC 1982: Serial Number Arithmetic See also: https://datatracker.ietf.org/doc/html/rfc1982#section-2 s1 < s2 and (s1 + 1) > (s2 + 1) See also: https://chromium.googlesource.com/external/webrtc/trunk/webrtc/+/f54860e9ef0b68e182a01edc994626d21961bc4b/modules/include/module_common_types.h.
Latest return newer of s1, s2.
Max returns the largest of s.
MaxInt returns the largest value representable by the type.
Mean returns the mean of s.
Min returns the smallest of s.
MinInt returns the smallest value representable by the type.
Reverse returns the reverse comparison for cmp, as cmp(b, a).
RingRem returns the remainder of x looped by +ny until in y > 0 ? [0, y) : (y, 0].
StandardDeviation returns the standard deviation of s.
Sum returns the sum of s.
Unwrap unwrap a number to a larger type.
Variance returns the variance of s.
# Type aliases
SerialNumber is a constraint that permits any unsigned integer type.