Data update

This commit is contained in:
Ingy dot Net 2024-04-19 16:56:29 -07:00
parent 0df55f9f24
commit aec8ed51b6
1045 changed files with 18889 additions and 2777 deletions

View file

@ -8,7 +8,7 @@ def checksum(sedol):
tmp = sum(map(lambda ch, weight: char2value(ch) * weight,
sedol, sedolweight)
)
return str((10 - (tmp % 10)) % 10)
return str((-tmp) % 10)
for sedol in '''
710889

View file

@ -22,7 +22,7 @@ def sedolCheckSumDigitLR(s):
zip(s, [1, 3, 1, 7, 3, 9]),
Right(0)
)
)(lambda d: Right(str((10 - (d % 10)) % 10)))
)(lambda d: Right(str((-d) % 10)))
# sedolValLR :: Char -> Either String Char