Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Luhn algorithm in Elixir

License

NotificationsYou must be signed in to change notification settings

ma2gedev/luhn_ex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hex.pm versionhex.pm daily downloadshex.pm weekly downloadshex.pm downloadsBuild Status

Validate Luhn number.

Installation

# mix.exsdefpdepsdo[{:luhn,"~> 0.3.0"}]end

and fetch

$ mix deps.get

How to use

# validate numberLuhn.valid?"378282246310005"# => true# Integer type numberLuhn.valid?378282246310005# => true

Benchmarking

$ MIX_ENV=bench mix deps.get$ MIX_ENV=bench mix compile$ mix bench

Author

Takayuki Matsubara (@ma2ge on twitter)

LICENSE

MIT

About

Luhn algorithm in Elixir

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp