swipl-devel icon indicating copy to clipboard operation
swipl-devel copied to clipboard

lambda expression does not handle "." operator for dictionary

Open honnix opened this issue 9 years ago • 3 comments
trafficstars

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

honnix avatar Feb 11 '16 16:02 honnix

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

JanWielemaker avatar Feb 12 '16 08:02 JanWielemaker

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

honnix avatar Feb 12 '16 12:02 honnix