mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
migrate remaining code to the new maps
This commit is contained in:
parent
f7dbbf5810
commit
3b1964e9df
4 changed files with 4 additions and 12 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue