Skip to content

Reimplement snoc with foldr #115

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

Merged
merged 1 commit into from
May 28, 2017
Merged

Reimplement snoc with foldr #115

merged 1 commit into from
May 28, 2017

Conversation

LiamGoodacre
Copy link
Member

Reversing twice means we rebuild the entire list twice. Also O(2n) = O(n).

@paf31
Copy link
Contributor

paf31 commented May 12, 2017

👍 LGTM, thanks!

@paf31 paf31 merged commit f44f011 into purescript:master May 28, 2017
@LiamGoodacre LiamGoodacre deleted the fix/snoc branch May 28, 2017 10:09
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.

2 participants