Validate the Luhn algorithm for the given string.
[dependencies] checkluhn = "0.0.1"
and
use checkluhn; fn main() { let n = "4111111111111111"; assert!(checkluhn::validate(n)); }
LICENSE: MIT