Last active
September 25, 2015 09:56
-
-
Save milankinen/79a2251b8133e2667809 to your computer and use it in GitHub Desktop.
Bacon.js flatMapFirst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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