Skip to content

Instantly share code, notes, and snippets.

@WildStudio
Created July 5, 2019 11:17
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save WildStudio/ff94fb0e4a234d0eb76db0787a2f47b0 to your computer and use it in GitHub Desktop.
Combine: Map Operation
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