Created
June 2, 2019 22:03
-
-
Save jjuliano/0c00a65f4bab7e29d5e5251369337a06 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
length := 4 | |
var any [length]bool | |
fruits := [length]string{"Apple", "Mango", "Orange", "Banana"} | |
for i := 0; i < len(fruits); i++ { | |
any[i] = len(fruits[i]) > length | |
} | |
for v := range any { | |
if any[v] == true { | |
fmt.Println(true) | |
break | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment