Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Swift
/
Generics
What does `where Left.Element == Right.Element` require?
from Generics
Swift 6.3.3
intermediate
1 min
What does `where Left.Element == Right.Element` require?
The two container types may differ, but their element types must be identical.
Left and Right must be exactly the same container type.
Both element types are converted to Any at runtime.
The elements only need to share one method name.
Check
Ask AI about this kata
Report an error
previous kata
Review generated generic store
Review AI code
next kata
Spot the bug in the smallest helper
Spot the bug
A new version is available
Reload