Created
July 23, 2018 13:53
-
-
Save FredrikAugust/0c198f6134d3413339b0cd049dcf7d92 to your computer and use it in GitHub Desktop.
Golfed validator of check digit in ISBN (67 characters)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
v=i=>(!(eval(i.split('').map((e,i)=>(e*[1,3][i%2])).join('+'))%10)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment