This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
We were not able to find the expected elm-package.json file at this tag.
Tag 2.0.0
Committed At 2019-03-12 07:49:21 UTC



    Modulus 10

    The Modulus 10 algorithm is used to detect accidental input errors in digit sequences such as credit card numbers and bank account numbers.

    Check out the wikipedia article for more info.


    import Mod10
    checkDigit : Result Mod10.Error Int
    checkDigit =
        Mod10.calculateCheckDigit [1, 2, 3]
    isValid : Result Mod10.Error Bool
    isValid =
        Mod10.hasValidCheckDigit [1, 2, 3, 0]