This function builds successfully
func dropLastFromArray(_ array: [Any]) -> [Any] {
return array.dropLast()
}
but this function does not
func dropFirstFromArray(_ array: [Any]) -> [Any] {
return array.dropFirst()
}
it gives a build error: No 'dropFirst' candidates produce the expected contextual result type '[Any]'
What is going on? In the docs, they both show a return type of ArraySlice<Element>. It seems to me that one of these two must be wrong.
I'm using XCode 12.5.1 if that matters

