Skip to content

Instantly share code, notes, and snippets.

@sundeepgupta sundeepgupta/setup.swift
Last active May 16, 2018

Embed
What would you like to do?
FlatMap Article - Setup
let project = Project()
let jim = Developer("Jim")
let anna = Developer("Anna")
let bob = Developer("Bob")
let ci = CI()
project.developerStream
.flatMap { developer -> Observable<Commit> in
print("\(developer.name) started coding...")
return developer.startCoding()
}
.subscribe(ci)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.