Add stepped range function and keys/values for maps.

This commit is contained in:
Stephen Chung
2020-04-04 12:20:24 +08:00
parent 92b549b828
commit 12a379dd57
5 changed files with 165 additions and 9 deletions

View File

@@ -236,7 +236,7 @@ impl Default for Engine<'_> {
(type_name::<Dynamic>(), "dynamic"),
]
.iter()
.map(|(k, v)| ((*k).to_string(), (*v).to_string()))
.map(|(k, v)| (k.to_string(), v.to_string()))
.collect();
// Create the new scripting Engine