node-lazy icon indicating copy to clipboard operation
node-lazy copied to clipboard

Feeding a string into lazy --> never returns (no EOF?)

Open holisticode opened this issue 12 years ago • 0 comments

I am feeding a string into Lazy:

myfunc = (string) -> lazy = Lazy() lazy.lines.map(String).skip(1).forEach (line) -> #dothework , line by line

 lazy.emit('data', string)

This all works fantastic - but the program never terminates. I guess it has to do that the string has no EOF? Also adding a '\n' to the end of the string doesn't solve the issue

Am I doing something wrong, or can't this be done this way

holisticode avatar Sep 19 '13 00:09 holisticode