double evaluation, fixes #271

This commit is contained in:
gnembon committed 2020-05-12 15:26:20 -03:00
1 parent 72ed5020c6
commit d0bd956bbd
1 file changed
+1 -1
@@ -1996,7 +1996,7 @@ public class CarpetExpression
((EntityValue) v).set(what, lv.get(2).evalValue(c)); ((EntityValue) v).set(what, lv.get(2).evalValue(c));
else else
((EntityValue) v).set(what, ListValue.wrap(lv.subList(2, lv.size()).stream().map((vv) -> vv.evalValue(c)).collect(Collectors.toList()))); ((EntityValue) v).set(what, ListValue.wrap(lv.subList(2, lv.size()).stream().map((vv) -> vv.evalValue(c)).collect(Collectors.toList())));
return lv.get(0); return (cc, tt) -> v;
}); });
// or update // or update