Map::keys and Map::values can be used method-call style.
This commit is contained in:
@@ -61,10 +61,10 @@ fn test_for_object() -> Result<(), Box<EvalAltResult>> {
|
||||
let keys = "";
|
||||
let map = #{a: 1, b: 2, c: 3};
|
||||
|
||||
for key in keys(map) {
|
||||
for key in map.keys() {
|
||||
keys += key;
|
||||
}
|
||||
for value in values(map) {
|
||||
for value in map.values() {
|
||||
sum += value;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user