What type should I use in swift 5 if I want a function to accept either a [Double] or an ArraySlice<Double>?
In other words, is there some type I can use which would allow me to combine both of the following declarations into one, so that the function can be called with one or the other?
func appendToX(_ data: ArraySlice<Double>)
func appendToX(_ data: [Double])