Created
February 16, 2023 00:15
-
-
Save paigeshin/ca3e5fca26bf486e355de572e48f2ccc to your computer and use it in GitHub Desktop.
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
| import Foundation | |
| import Combine | |
| let publisher = ["A", "B", "C", "D"].publisher | |
| publisher | |
| .contains("C") | |
| .sink { | |
| print($0) // true | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment