Skip to content

Instantly share code, notes, and snippets.

@jasdev

jasdev/never_to_string.swift Secret

Last active Apr 4, 2020
Embed
What would you like to do?
Mapping from `Never` into a `String`.
Just("someString")
.eraseToAnyPublisher()
.ignoreOutput()
.map { _ -> String in } /// GG.
.append("anotherStringPostFinished")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.