ExKpl.Keyset (ExKpl v0.2.0) View Source

Link to this section Summary

Link to this section Types

Specs

t() :: %ExKpl.Keyset{key_to_index: map(), rev_keys: [binary()]}

Link to this section Functions

Link to this function

get_or_add_key(key, keyset)

View Source

Specs

get_or_add_key(nil, t()) :: {nil, t()}
get_or_add_key(binary(), t()) :: {non_neg_integer(), t()}

Specs

key?(binary(), t()) :: boolean()

Specs

key_list(t()) :: [binary()]
Link to this function

potential_index(key, keyset)

View Source

Specs

potential_index(binary(), t()) :: non_neg_integer()