This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
Verify and calculate check digits according to the algorithm Modulus 10
version 1.0.0
license BSD-3-Clause
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 1.0.0
Committed At 2018-07-21 19:22:08 UTC
elm-lang/core 5.0.0 <= v < 6.0.0 5.1.1

Modules

README

Mod10

Verify numeric strings.

import Mod10

Mod10.verify "79927398713" == True
Mod10.verify "79927398714" == False
Mod10.verify "nonsense" == False

Calculate a "check digit" for a numeric string.

import Mod10

Mod10.calculate "7992739871" == Just '3'
Mod10.calculate "nonsense" == Nothing