bool validateModulus10weight3and1(int target, [int? checkDigit]) => checkDigit == null ? validateModulus10weight3and1(target ~/ 10, target % 10) : (0 <= checkDigit && checkDigit < 10 ? modulus10weight3and1(target) == checkDigit : validateModulus10weight3and1(target ~/ 10, target % 10));
```
bool validateModulus10weight3and1(int target, [int? checkDigit]) => checkDigit == null ? validateModulus10weight3and1(target ~/ 10, target % 10) : (0 <= checkDigit && checkDigit < 10 ? modulus10weight3and1(target) == checkDigit : validateModulus10weight3and1(target ~/ 10, target % 10));
```
I get the feeling if credit cards were being invented today, it would be.
#transposition #creditcard #checkdigit #errordetection #coding #information
I get the feeling if credit cards were being invented today, it would be.
#transposition #creditcard #checkdigit #errordetection #coding #information