Luhn test of credit card numbers: Difference between revisions
m
→{{header|langur}}
(→{{header|RPL}}: corrected major bug) |
Langurmonkey (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 3,922:
=={{header|langur}}==
{{trans|Go}}
<syntaxhighlight lang="langur">val .luhntest =
val .t = [0, 2, 4, 6, 8, 1, 3, 5, 7, 9]
val .numbers = s2n .s
Line 3,932:
}
val .tests =
"49927398716": true,
"49927398717": false,
|