package luna

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module LunaSource

Sourceval checksum_digit : string -> int

checksum_digit s computes the Luhn check digit for the input string s. Returns the digit that would make s valid under the Luhn algorithm.

Sourceval validate : string -> bool

validate s validates whether the input string s is a valid Luhn number. Returns true if valid, false otherwise.