get_next_assoc/5

get_next_assoc(+ Key,+ Assoc,? Next,? Value)*

If Key is one of the elements in the association list Assoc, return the next key, Next, and its value, Value.