Skip to main content

Generic Repository protocol + memory implementation

Challenge on lesson: Checkpoint: Typing

CHALLENGE
Difficulty: advanced+25 XP

Implement Repository(Protocol[T]), MemoryRepository(Generic[T]) (key_fn constructor; first-add-wins on duplicate keys), and seed(repo, users).

Back to lesson: Checkpoint: Typing