switchToLatest search pipeline
You're building a Combine pipeline for a SwiftUI search screen that calls the API as the user types. What's the difference between putting switchToLatest() after map { query in api.search(query) } versus using flatMap, and why is switchToLatest the right choice for search?