This is legal (arr is an array):
let arrenum = Array(arr.enumerated()) So why is this illegal?
extension Array {
func f() {
let arrenum = Array(self.enumerated())
// error: type of
This is legal (arr is an array):
let arrenum = Array(arr.enumerated()) So why is this illegal?
extension Array {
func f() {
let arrenum = Array(self.enumerated())
// error: type of