of

fun of(n: Long): Weight

A whole-number weight n (i.e. n/1); n must be positive.


fun of(numerator: Long, denominator: Long): Weight

The reduced weight numerator/denominator; both must be positive. Reduced to lowest terms so equal ratios are structurally equal.