forked from LeenkxTeam/LNXSDK
Update
This commit is contained in:
@ -227,7 +227,7 @@ class BalancedTree<K, V> implements haxe.Constraints.IMap<K, V> {
|
||||
}
|
||||
|
||||
public function toString() {
|
||||
return root == null ? '{}' : '{${root.toString()}}';
|
||||
return root == null ? "[]" : '[${root.toString()}]';
|
||||
}
|
||||
|
||||
/**
|
||||
@ -264,6 +264,6 @@ class TreeNode<K, V> {
|
||||
return this == null ? 0 : _height;
|
||||
|
||||
public function toString() {
|
||||
return (left == null ? "" : left.toString() + ", ") + '$key=$value' + (right == null ? "" : ", " + right.toString());
|
||||
return (left == null ? "" : left.toString() + ", ") + '$key => $value' + (right == null ? "" : ", " + right.toString());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user