What I'm trying to do is similar to combineLatest, but the second (inner) observable depends on the response from the first
ajax.get('/first-url')
.map(res => new Thing(res.response)
.someMap(thing =>
ajax.get(`/second-url?code=${thing.code}`)
.map(res => new OtherThing(res.response))
).map(([firstThing, secondThing]) => console.log(firstThing, secondThing))
Essentially, I'd like to be able to merge the two results into a single array of those results that I can use to do a third thing.
My goal is to get data A and data B because I need them BOTH to perform a certain action, and getting data B relies on already having data A.