alphabetify v1.0.1 Alphabetify
Alphabetify
Alphabetify is a module that generates sequential alphabetic hashes.
Use
Before generating hashes, you should seed the module with your initial hash.
By default, the module will begin at ‘AAAA’.
To use a different initial hash, call the seed_hash/1
function. Example: Alphabetify.seed_hash("AAAAAA")
.
Each time you want to get the next available hash, call generate_hash/0
. Example: Alphabetify.generate_hash
.
That function will advance the hash and persist it, then return the new hash.
The hash will append new characters when required.
Examples: 'ZZZZ' -> 'AAAAA'
and 'AAAZ' -> 'AABA'
Link to this section Summary
Functions
This generates the next hash in the sequence
This gets the last hash used
This sets the initial value in the hash sequence
Link to this section Functions
This generates the next hash in the sequence.
This gets the last hash used.
This sets the initial value in the hash sequence.