Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 505 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 505 Bytes

Luhn (Mod 10)

Go docs

A fast and simple in-place implementation of the luhn check algorithm in Zig. Implementations in other languages can be found at github.com/luhnmod10.

Usage

const luhnmod10 = @import("path/to/luhnmod10/src/lib.zig");
const valid = luhnmod10.valid("4242424242424242");