1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

migrate remaining code to the new maps

This commit is contained in:
Alexander Medvednikov
2019-07-14 22:26:21 +02:00
parent f7dbbf5810
commit 3b1964e9df
4 changed files with 4 additions and 12 deletions

View File

@ -26,10 +26,7 @@ fn main() {
m[key] = m[key] + 1// TODO m[key]++
}
// Sort the keys
mut keys := []string
for e in m.entries {
keys << e.key
}
mut keys := m.keys()
keys.sort()
// Print the map
for key in keys {