Compute weighted sum mod 11, given digits and weights.
Weights are applied 1-to-1 with digits from left to right. If weights is shorter than digits, an error is thrown — country-specific code must pre-extend or cycle weights as needed.
digits
weights
Compute weighted sum mod 11, given digits and weights.
Weights are applied 1-to-1 with
digitsfrom left to right. Ifweightsis shorter thandigits, an error is thrown — country-specific code must pre-extend or cycle weights as needed.