Re: Some thoughts on dicts in SWIPL 7
Jan Wielemaker <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
On 02/18/2014 11:27 AM, Carlo Capelli wrote:
>
> I forgot: a pattern that could be handy could be a member_dict/2, to
> avoid this kind of code
>
> (member(F, T.foreignKeys), F >:< _{pkCol:PkCol, fkTable:FkTable,
> fkCol:FkCol})
I think I'm missing something:
16 ?- A is _{a:1, b:2}.Key.
A = 1,
Key = a ;
A = 2,
Key = b.
What am I missing?
Cheers --- Jan