Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Postfix type erasure in Combine.
import Combine
postfix operator ^
postfix func ^ <Publisher: Combine.Publisher>(_ publisher: Publisher)
-> AnyPublisher<Publisher.Output, Publisher.Failure> {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment