Skip to content

Instantly share code, notes, and snippets.

@milankinen
Last active September 25, 2015 09:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milankinen/79a2251b8133e2667809 to your computer and use it in GitHub Desktop.
Save milankinen/79a2251b8133e2667809 to your computer and use it in GitHub Desktop.
Bacon.js flatMapFirst
const Bacon = require("baconjs")
Bacon
.sequentially(10, [1, 2, 3, 4, 5])
.flatMapFirst(val => Bacon.later(25, val))
.subscribe(console.log.bind(console))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment