Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upflatMap? #73
Comments
This comment has been minimized.
This comment has been minimized.
devinus
commented
Jul 31, 2015
|
I actually need this right now. Unsure how to continue... |
This comment has been minimized.
This comment has been minimized.
devinus
commented
Jul 31, 2015
|
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);
});
})) |
This comment has been minimized.
This comment has been minimized.
|
@devinus it would be better to do |
This comment has been minimized.
This comment has been minimized.
devinus
commented
Jul 31, 2015
|
@dominictarr Interesting. Would you accept a |
This comment has been minimized.
This comment has been minimized.
devinus
commented
Jul 31, 2015
|
I wonder why |
This comment has been minimized.
This comment has been minimized.
|
@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. |
right9ctrl
added
the
feature request
label
Sep 5, 2018
right9ctrl
closed this
Sep 9, 2018
This was referenced Nov 26, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wilsonjackson commentedOct 27, 2014
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?