Title basicially says it all. I got this pseudo example from someone on the Angular discord:
const itemCount$ = merge(
incrementingThingHappened$.pipe(map(() => 1),
decrementingThingHappened$.pipe(map(() => -1)
).pipe(
// ^ whenever any of those things happen
scan((count, change) => count + change, 0)
// ^ increment the value
);
The annotation "whenever any of those things happen" makes it sound like .pipe acts pretty much in the same way as how .then is used when chaining promises, except that .pipe wraps the to be chained function in a transformation.. decorator i suppose? I assume as to standardize some common access patterns to piped data?
Either way I can run a function via scan which to me is analogous to writing a chained promise.