Invented quick and dirty Hash-like using a list i.e.
[ key1:val1,key2:val2, ....]
I can get the keys and values :
hl_keys(HL,Res) :- maplist(\I^K^(I = K:_),HL,Res).
hl_vals(HL,Res) :- maplist(\I^V^(I = _:V),HL,Res).
but how do I get specific value by key and key by value ?
it was easy :
and the good thing is it acts as two-way hash