Skip to content

Instantly share code, notes, and snippets.

@bjartwolf
Created October 22, 2012 20:00
Show Gist options
  • Save bjartwolf/3933720 to your computer and use it in GitHub Desktop.
Save bjartwolf/3933720 to your computer and use it in GitHub Desktop.
Recursive rx
var Rx = require('rx');
var sawtooth = Rx.Observable.interval(10);
sawtooth.combineLatest(sawtooth.delay(1000), function (a,b) {
console.log("a: " + a);
console.log("b: " + b);
return (a+b);}).subscribe(function (x) {console.log(x);});
~
~
~
~
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment