Skip to content

Instantly share code, notes, and snippets.

@shin-
Last active December 22, 2015 06:28
Show Gist options
  • Save shin-/6430711 to your computer and use it in GitHub Desktop.
Save shin-/6430711 to your computer and use it in GitHub Desktop.
func flatten(slc [][]*ImgData) []*ImgData {
result := []*ImgData{}
for _, x := range slc {
result = append(result, x...)
}
return result
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment