Created
July 5, 2019 11:17
Star
You must be signed in to star a gist
Combine: Map Operation
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
let _ = Just(5) | |
.map { $0 * 10 ) }.sink { receivedValue in | |
// sink is a subscriber that terminates the pipeline | |
print("The result is \(receivedValue)") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment