You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These two definitions for + are generic, but the other operators are not. The other operators can still use the generic type parameter from the array type itself, why does the + use its own generic type parameter? Same thing for Dictionary.
The text was updated successfully, but these errors were encountered:
sodiboo
changed the title
Why is array and dictionary + generic, but other methods are not?
Why is array and dictionary + generic when other operators are not?
Aug 8, 2021
SwiftBaseLibrary/Source/Array.swift
Lines 246 to 260 in 64cb429
These two definitions for + are generic, but the other operators are not. The other operators can still use the generic type parameter from the array type itself, why does the + use its own generic type parameter? Same thing for Dictionary.
SwiftBaseLibrary/Source/Dictionary.swift
Lines 156 to 162 in 64cb429
The text was updated successfully, but these errors were encountered: