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 the `Item` in `protocol Catalog<Item>` represent?
from Generics
Swift 6.3.3
intermediate
1 min
What does the `Item` in `protocol Catalog<Item>` represent?
A primary associated type that must also be declared with `associatedtype Item` and is selected by each conformer.
A stored protocol property created for every conforming value.
An ordinary generic argument chosen when the protocol declaration executes.
An existential box that can contain several item types at once.
Check
Ask AI about this kata
Report an error
previous kata
What does this program print?
Predict the output
next kata
Review generated generic store
Review AI code
A new version is available
Reload