https://en.wikipedia.org/wiki/Luhn_algorithm#Pseudocode_implementation
July 03, 2021 do we already have sum-modulo-10 algo (aka Luhn's algo) on phobos ? | ||||
---|---|---|---|---|
| ||||
July 03, 2021 Re: do we already have sum-modulo-10 algo (aka Luhn's algo) on phobos ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to someone | On Saturday, 3 July 2021 at 17:44:48 UTC, someone wrote: >https://en.wikipedia.org/wiki/Luhn_algorithm#Pseudocode_implementation That specific function, in Phobos? no. sum modulo 10? That's just some_var%10 in D. The Wikipedia link ends with a link to RosettaCode: https://rosettacode.org/wiki/Luhn_test_of_credit_card_numbers#D |
Copyright © 1999-2021 by the D Language Foundation