Reorderex v0.2.0-beta Reorderex.Helper View Source
Reorderex helper functions for manipulating scores.
Link to this section Summary
Link to this section Functions
Returns a string that is greater than the first argument and smaller than the second argument.
Examples
iex> Reorderex.Helper.between("a", "c")
"b"
iex> Reorderex.Helper.between("c", "a")
"b"
iex> Reorderex.Helper.between("a", "b")
"aV"
iex> Reorderex.Helper.between("a", "a")
"a"
iex> Reorderex.Helper.between(nil, "a")
"Y"
iex> Reorderex.Helper.between("0", nil)
"3"
iex> Reorderex.Helper.between(nil, nil)
nil
Behaves the same as between/2
except that it will raise when the two strings are equals.
Examples
iex> Reorderex.Helper.between!("a", "c")
"b"
iex> Reorderex.Helper.between!("a", "a0")
** (ArgumentError) Given strings are equals
Returns current EPOCH in base 62.