Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
holisticode opened this issue Sep 19, 2013 · 0 comments
Open

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

holisticode opened this issue Sep 19, 2013 · 0 comments

Comments

@holisticode
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant