Liking cljdoc? Tell your friends :D

Clojure Implementation of ISO 7064

Build Status Clojars Project

Clojure implementation of ISO 7064 - Check check character systems. Providing all Pure and Hybrid systems listed in the standard under 5.4.1. Moreover custom check character systems can be created.

Install

To install, just add the following to your project dependencies:

[org.clojars.knoppiks/iso-7064 "0.1.0"]

Usage

(use 'iso-7064.core)

(calc-check-character mod-11-2 "079")
(valid? mod-11-2 "079X")

Creating a custom system

(use 'iso-7064.core)

(def sys (pure-system "0123456789ABC" 13 2 false))
(calc-check-character sys "05BC")
(valid? sys "05BCA")

Note: Custom systems may be useless, if arguments are chosen unwisely. For more information refer to the standard or other sources on check character systems.

License

Copyright © 2016 Jonas Wagner

Distributed under the Eclipse Public License, the same as Clojure.

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close