maps unpack

This commit is contained in:
gnembon committed 2021-04-23 10:58:33 -03:00
1 parent 5ec664240f
commit e22474156b
6 files changed
+35 -32

No files matched your search

@@ -48,6 +48,12 @@ public class MapValue extends AbstractListValue implements ContainerValueInterfa
return new ArrayList<>(map.keySet()).iterator();
}
@Override
public List<Value> unpack()
{
return map.entrySet().stream().map(e -> ListValue.of(e.getKey(), e.getValue())).collect(Collectors.toList());
}
@Override
public String getString()
{