mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 11:07:46 +00:00
all: implement iterating over hashmaps
Still no support for hashmaps > 8 entries, but this kind of works.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user