Specification for a Functional Reactive Programming language

I’m glad you’re starting by asking about a specification rather than implementation first. There are a lot of ideas floating around about what FRP is. From the very start in the early 90’s (when I was working in interactive graphics at Sun Microsystems and then Microsoft Research), it has been about two properties (a) denotative … Read more

RxJS Promise Composition (passing data)

I did not read all of it, but if you want to achieve the same as pl().then(p2).then(p3).then(console.log);, with p being function returning promises, you could do something like (example here) Rx.Observable.fromPromise(p1()) .flatMap(function(p1_result){return p2(p1_result);}) .flatMap(function(p2_result){return p3(p2_result);}) Or the more symmetric : var chainedPromises$ = Rx.Observable.just() .flatMap(p1) .flatMap(p2) .flatMap(p3); Now if you want to execute sequentially callback … Read more