LexorankEx (lexorank_ex v0.1.5)
Link to this section Summary
Functions
Returns middle point between two strings.
Returns the distance between two values
The result is a middle rank for NumeralSystem with radix == 62
Returns next lexically greater value for provided rank
Returns next lexically lesser value for provided rank
Link to this section Functions
Link to this function
between(string, string)
Specs
Returns middle point between two strings.
between("a", "c") => "b"
between("a", "b") => "aV"
Link to this function
distance(left, right)
Specs
distance(String.t(), String.t()) :: non_neg_integer()
Returns the distance between two values
Link to this function
maximum_value(division \\ 1)
Specs
maximum_value(non_neg_integer()) :: String.t()
Link to this function
middle(division)
Specs
middle(non_neg_integer()) :: String.t()
The result is a middle rank for NumeralSystem with radix == 62
Link to this function
minimum_value(division \\ 1)
Specs
minimum_value(non_neg_integer()) :: String.t()
Link to this function
next(rank, step \\ 8)
Specs
next(String.t(), non_neg_integer()) :: String.t()
Returns next lexically greater value for provided rank
LexorankEx.next("a") => "i" default step is 8
LexorankEx.next("a", step = 1) => "b"
Link to this function
prev(rank, step \\ 8)
Specs
prev(String.t(), non_neg_integer()) :: String.t()
Returns next lexically lesser value for provided rank
LexorankEx.prev("i") => "a" default step is 8
LexorankEx.prev("b", step = 1) => "a"