SWI-Prolog / swipl-devel

SWI-Prolog Main development repository
http://www.swi-prolog.org
Other
963 stars 176 forks source link

lambda expression does not handle "." operator for dictionary #123

Open honnix opened 8 years ago

honnix commented 8 years ago

Following query will result an error

?- maplist([In,Out]>>atom_string(Out, In.a), [_{a:1},_{a:2}], L).
ERROR: Arguments are not sufficiently instantiated

while following is accepted

?- maplist([In,Out]>>(get_dict(a, In, V), atom_string(Out, V)), [_{a:1},_{a:2}], L).
L = ['1', '2'].

It looks like library(yall) and dictionary operator doesn't play well.

Version:

SWI-Prolog version 7.3.12 for x86_64-darwin15.0.0
JanWielemaker commented 8 years ago

Agree. Pile of work is a bit too high to look into that on short term.

honnix commented 8 years ago

@JanWielemaker Thanks and t's not urgent at all.