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

Spill fails on the empty list #53

Closed
HeinrichApfelmus opened this issue Apr 15, 2013 · 0 comments
Closed

Spill fails on the empty list #53

HeinrichApfelmus opened this issue Apr 15, 2013 · 0 comments

Comments

@HeinrichApfelmus
Copy link
Owner

Reid Barton reports:

By the way, I also encountered a simple bug involving spill: trying to spill an empty list causes a "head []" type of exception. I've worked around it by using

spill' = R.spill . R.filterE (not . null)

but I imagine that there might be a better implementation in terms of the internal primitives.

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

No branches or pull requests

1 participant