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

Example fix for #164 #165

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jmbromley
Copy link

This is an example of how #164 could be fixed, by adding strictly tail recursive versions of groupsOf and friends for when they are needed, while still allowing access to the (presumably faster) default versions. It simply uses a direct copy of the tail recursive version of List.take that is used internally by elm/core.

This is just a sample, and intended more to create a place to discuss #164 rather than a definitive solution... perhaps it is considered too much of a corner case to fix anyway?

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

Successfully merging this pull request may close these issues.

1 participant