Skip to content
This repository was archived by the owner on May 30, 2025. It is now read-only.

Latest commit

 

History

History
15 lines (10 loc) · 505 Bytes

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");