Last active
October 25, 2019 02:52
-
-
Save frankie-yanfeng/6407007e9cc546dfabd26953ad7e4f52 to your computer and use it in GitHub Desktop.
for range without memory cost
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
var times [5][0]int | |
for range times { | |
fmt.Println("hello") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment