View Source Lipmaa (Lipmaa v0.1.0)
Compute Lipmaa backlinks
Link to this section Summary
Functions
Compute the sequence number to which to link from a provided sequence number
Link to this section Functions
Specs
linkseq(pos_integer()) :: non_neg_integer() | :error
Compute the sequence number to which to link from a provided sequence number
Provided sequence in the range [1, 2⁶⁴ - 1] Returns in the range [0, 2⁶⁴ - 2]
examples
Examples
iex> Lipmaa.linkseq(1)
0
iex> Lipmaa.linkseq(40)
13