This library would greatly benefit from a guide that describes how to use unfoldr. The current explanation is pretty terse.
I was initially led here from Data.Map.Internal.toUnfoldable, which was pretty confusing. It also took me a while to realize that the argument to go is a "todo list" of subtrees to process.
Some resources that I found helpful to get more comfortable with unfoldr are:
I'd like to incorporate some of that content (and perhaps some additional examples and explanation) into the official library docs.
This library would greatly benefit from a guide that describes how to use
unfoldr. The current explanation is pretty terse.I was initially led here from Data.Map.Internal.toUnfoldable, which was pretty confusing. It also took me a while to realize that the argument to
gois a "todo list" of subtrees to process.Some resources that I found helpful to get more comfortable with
unfoldrare:I'd like to incorporate some of that content (and perhaps some additional examples and explanation) into the official library docs.