26 lines
298 B
Go
26 lines
298 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
// Need to show solution with maps.Clone
|
|
|
|
func main() {
|
|
data := map[int]struct{}{
|
|
0: {},
|
|
1: {},
|
|
2: {},
|
|
}
|
|
|
|
for key := range data {
|
|
data[10+key] = struct{}{}
|
|
}
|
|
|
|
for key := range data {
|
|
fmt.Print(key)
|
|
fmt.Print(" ")
|
|
}
|
|
|
|
fmt.Println()
|
|
fmt.Println(data)
|
|
}
|