This repository has been archived by the owner on Nov 28, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 149
flatMap? #73
Labels
Comments
I actually need this right now. Unsure how to continue... |
For people finding this in the future, I accomplished a "flatMap" by using this: .pipe(es.through(function(data) {
var stream = this;
data.forEach(function(r) {
stream.emit('data', r);
});
})) |
@devinus it would be better to do |
@dominictarr Interesting. Would you accept a |
I wonder why |
@devinus ah, it's probably just old. I don't use this module anymore, i now use https://github.com/dominictarr/pull-stream If you publish a flatMap module and then make a pr to include it, i'll merge. |
This was referenced Nov 26, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It seems like this module could use a flatMap implementation. I've even looked for it in other modules, and can't seem to find a flatMap for node streams (which seems crazy!), only libraries like bacon.js and highland which use their own stream types.
Would you entertain a PR adding flatMap?
The text was updated successfully, but these errors were encountered: