all: implement iterating over hashmaps

Still no support for hashmaps > 8 entries, but this kind of works.
This commit is contained in:
Ayke van Laethem
2018-09-15 00:29:34 +02:00
parent 5b4b6cfee2
commit 152e12e4b0
3 changed files with 101 additions and 0 deletions
+3
View File
@@ -111,6 +111,9 @@ func testBound(f func() string) {
func readMap(m map[string]int, key string) {
println("map length:", len(m))
println("map read:", key, "=", m[key])
for k, v := range m {
println(" ", k, "=", v)
}
}
func hello(n int) {