Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
`mapError`’ing over a `Never` with only type annotations.
Just(6_174)
.mapError { _ -> OurError in } /// ⇒ `Result<Int, OurError>.Publisher.Failure == OurError`.
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.