Talk:Luhn algorithm: Difference between revisions

Content deleted Content added
Roger Hui (talk | contribs)
Roger Hui (talk | contribs)
Line 267:
<pre>
Luhnc←{10|-+/,0 10⊤⍵×⌽(≢⍵)⍴2 1} ⍝ calculate the check digit
Luhnv←{(⊃⌽⍵)≡Luhnc ¯1↓⍵} ⍝ verify the check digit
 
x← 7 9 9 2 7 3 9 8 7 1