Emma has created a function splitSlice(), which takes a slice of integers and splits it in half:
func splitSlice(slice []int) ([]int, []int) {
half := len(slice) / 2
return slice[:half], slice[half:]
}
Emma now wants to make splitSlice() a generic function that can take a slice of any data type, and then instantiate it within the main function, passing the stringSlice and floatSlice variables to it! Can you help her do so?