Availability:built-in
?- select_dict(#{x:0, y:Y}, point{x:0, y:1, z:2}, R).
Y = 1,
R = #{z:2}.
See also :</2 to ignore Rest and >:</2 for a symmetric partial unification of two dicts.
?- select_dict(#{x:0, y:Y}, point{x:0, y:1, z:2}, R).
Y = 1,
R = #{z:2}.
See also :</2 to ignore Rest and >:</2 for a symmetric partial unification of two dicts.