// Transform two dimensional slice to one dimensional slice
Transform two dimensional slice to one dimensional slice
// Transform two dimensional slice to one dimensional slice
func to1DSlice(a [][]string) (result []string) {
	for _, i := range a {
		temp := ""
		for _, j := range i {
			temp += j
		}
		result = append(result, temp)
	}
	return
}
func to1DSlice ( a [ ] [ ] string ) ( result [ ] string ) { for _ , i := range a { temp := " " for _ , j := range i { temp += j } result = append ( result , temp ) } return }
Transform two dimensional slice to one dimensional slice
Transform two dimensional slice to one dimensional slice