Created
June 2, 2019 22:11
-
-
Save jjuliano/b26f0dd2ee6aadc316ac3672d3455829 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
a := [...]int{1,2,3,4,5,0} | |
for _, i := range a { | |
if a[i] < 3 { | |
drop := a[2:] | |
fmt.Println(drop) | |
break | |
} | |
} | |
// [3 4 5 0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment