Created
April 7, 2020 02:01
-
-
Save jasdev/dc5cd15980231022e94c29a03a239039 to your computer and use it in GitHub Desktop.
`mapError`’ing over a `Never` with only type annotations.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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