You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code produces StackOverflowError cause append function recursively evaluates all nil streams while looking for head.
I only came up with ugly looking while inside bind function which produces stream's head on constant stack.
Any ideas?
The text was updated successfully, but these errors were encountered:
Yeah, there is a laziness issue with Stream: both head and tail should be part of a lazy thunk. Not only the tail. And then reduction to "weak head normal form" should be properly trampolined. I will work an a redesign shortly. I have worked on a prototype of such design in the past. Thanks for reporting the issue and providing a motivation to finish the work!
This code produces StackOverflowError cause append function recursively evaluates all nil streams while looking for head.
I only came up with ugly looking while inside bind function which produces stream's head on constant stack.
Any ideas?
The text was updated successfully, but these errors were encountered: