Created
April 18, 2020 07:29
-
-
Save Alexander-Ignition/3e6910fe8d67d1a0dc8db33d0a968785 to your computer and use it in GitHub Desktop.
Optional+Combine
This file contains hidden or 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
| [1, 2].publisher // Publishers.Sequence<[Int], Never> | |
| Result<Int, Never>.success(1).publisher // Result<Int, Never>.Publisher | |
| Optinal.some(1).publisher // Error! But have Optional.Publisher | |
| // Missing extention | |
| extension Optional { | |
| public var publisher: Optional.Publisher { | |
| Optional.Publisher(self) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment