Validate International Securities Identification Number: Difference between revisions
Validate International Securities Identification Number (view source)
Revision as of 13:54, 20 March 2020
, 4 years ago→{{header|langur}}
Thundergnat (talk | contribs) (→{{header|Raku}}: fix up internal link) |
Langurmonkey (talk | contribs) |
||
Line 1,584:
The luhn test is repeated here for simplicity (from Luhn_test_of_credit_card_numbers#langur).
{{works with|langur|0.
<lang langur>val .luhntest = f(.s) {
val .t = [0, 2, 4, 6, 8, 1, 3, 5, 7, 9]
val .numbers =
val .oddeven = len(.numbers) rem 2
} rem 10 == 0
▲ .numbers,
}
val .isintest = f(.s) {
}
|