Next: , Previous: , Up: prolog-libraries   [Index]


16.13.4 Hash datastructure

The main hash datastructure is a vhash datastructure which is a assoc like hash with good lookup properties.

16.13.4.1 API.

make_vhash(Handle), Constructor, generate a dynamic featured vhash unified to Handle.

vhashp(Handle). Succeeds if Handle is a vhash datastructure.

vhash_ref(Handle, Key). References the vhash datastructure.

vhash_cons(Handle, Key, Val). (conses a Key,Val pair onto the Handle.

vhash_for_each(Handle,Key,Val). Will successivly at backtracking bind new values in Key and Val. The generated values will be those defined at the start of the execution of this ideom.