Important Tip: Introducing New Values into a Stream
simplygreatwork opened this issue · comments
When working with transform streams in Node.js, it's obvious how to push new values onto the stream - you simply just push additional values onto the next stream handler. With Lazy.js, underscore, lodash, etc - it's not as obvious how to introduce new values into the stream. In Lazy.js, several API calls exist to exclude or filter values, but few for introducing new values. One way to do it is to have the map() function return an array and then call flatten() next.