Module

LuhnCheck

Package
purescript-luhncheck
Repository
inventvenkat/LuhnCheck

#luhnCheck Source

luhnCheck :: String -> Boolean
   Luhn Algo 

check for alphabets and return false if it has

Reverse the card number

sum <- 0

if odd_position then

 `sum += mulitplies then num[i] by 2 and mod by 9`

else

 `sum += num[i]`

check it is divisible by 10

Modules
LuhnCheck