gen_assoc/4

gen_assoc( ?Key, +Assoc, ?Valu_)*

Given the association list Assoc, unify Key and Value with a key-value pair in the list. It can be used to enumerate all elements in the association list.