Sending a slice of array to the function.