Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

IBM MOD 11 Algorithm

Name: Anonymous 2012-10-04 0:16

Post a clever/fast/short implementation of this algorithm

http://en.wikipedia.org/wiki/MSI_Barcode#Mod_11_Check_Digit (IBM version)

¡In any programming language you want!

Skill level: 1 of 10

INB4: Check my Anus

Name: Anonymous 2012-10-04 4:07

ibmWeights = cycle [2,3,4,5,6,7]
check = (flip mod 11) . ((-) 11) . (flip mod 11) . sum . (zipWith (*) ibmWeights) . reverse

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List