spec: https://golang.org/ref/spec#RangeClause
point 3: ... If a map entry is created during iteration, that entry may be produced during the iteration or may be skipped. The choice may vary for each entry created and from one iteration to the next. ... On Tuesday, November 10, 2020 at 3:12:54 PM UTC+1 Kilos wrote: > when I run the same code like this > https://play.golang.org/p/fSPpo4_-k57,most of the time it print A,B,C and > D,but sometimes it just print A,B and C,why ??? > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/f54f305d-2d81-4b13-8bcd-b64947d6b31en%40googlegroups.com.