We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5660ea7 commit 7d223e5Copy full SHA for 7d223e5
src/main/java/carpet/script/value/MapValue.java
@@ -41,7 +41,7 @@ public MapValue(Set<Value> keySet)
41
@Override
42
public Iterator<Value> iterator()
43
{
44
- return new ArrayList<>(map.keySet()).iterator();
+ return map.keySet().iterator();
45
}
46
47
@@ -53,7 +53,7 @@ public List<Value> unpack()
53
54
public String getString()
55
56
- return "{" + map.entrySet().stream().map(p -> p.getKey().getString() + ": " + p.getValue().getString()).collect(Collectors.joining(", ")) + "}";
+ return map.toString();
57
58
59
0 commit comments