Skip to content

Add unfoldCofree #57

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

Closed
wants to merge 1 commit into from
Closed

Add unfoldCofree #57

wants to merge 1 commit into from

Conversation

paf31
Copy link
Contributor

@paf31 paf31 commented Oct 2, 2016

Also replaces the Trampoline with Unit ->, since I don't think a full trampoline was necessary there.

@garyb
Copy link
Member

garyb commented Oct 13, 2016

Should we perhaps use Lazy instead of the thunk? Or do you think there's little benefit / some problem there?

@paf31
Copy link
Contributor Author

paf31 commented Oct 13, 2016

Actually, Lazy makes a lot of sense since we can use the cofree comonad to represent course-of-value recursion where memoization might be important.

@garyb garyb mentioned this pull request Oct 13, 2016
@paf31 paf31 closed this Oct 13, 2016
@paf31 paf31 deleted the phil/unfold-cofree branch October 13, 2016 16:36
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