Skip to content

Instantly share code, notes, and snippets.

@briancavalier
Created November 5, 2014 15:36
Show Gist options
  • Select an option

  • Save briancavalier/b3096dca42eecf93aa9b to your computer and use it in GitHub Desktop.

Select an option

Save briancavalier/b3096dca42eecf93aa9b to your computer and use it in GitHub Desktop.
var most = require('../../most');
//var n = 0;
//var n = 1;
var n = 2;
var s = most.of(1).flatMap(function() {
return most.periodic(1000);
}).take(n);
s.observe(function(x) {
console.log(x);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment