swipl-devel
swipl-devel copied to clipboard
lambda expression does not handle "." operator for dictionary
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
Agree. Pile of work is a bit too high to look into that on short term.
@JanWielemaker Thanks and t's not urgent at all.