Limit/Span (Min,Max) Pair.
TODO: Simultaneous min and max (minmax) can be optimized to 3/4 comparison. TODO: Decide on either Span, MinMax or Limits
alias T = int; Limits!T x; assert(x.min == T.max); assert(x.max == T.min); x.expand(-10); x.expand(10); assert(x.min == -10); assert(x.max == +10);
https://stackoverflow.com/questions/21241878/generic-span-type-in-phobos
See Implementation
Limit/Span (Min,Max) Pair.
TODO: Simultaneous min and max (minmax) can be optimized to 3/4 comparison. TODO: Decide on either Span, MinMax or Limits