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

[Proposition] Add unfolds for types. #773

Closed
Heimdell opened this Issue Dec 4, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@Heimdell

Heimdell commented Dec 4, 2016

I tried to code some isometric landscape generator (using svg) lately, and I got a task to solve: generate list of points (Int, Int).

The core.List module only contained List.range : Int -> Int -> List Int method. And no unfoldr or alike.
So I had to break my stream of thinking of things I want to do and implemented it myself.

My proposition: add unfold{r,l,} for any module describing "sequental container" types like List, Maybe, etc.

For instance, List.unfoldr : (seed -> Maybe (a, seed)) -> seed -> List a.

@process-bot

This comment has been minimized.

Show comment
Hide comment
@process-bot

process-bot Dec 4, 2016

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

process-bot commented Dec 4, 2016

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

@jvoigtlaender

This comment has been minimized.

Show comment
Hide comment
@jvoigtlaender

jvoigtlaender Dec 4, 2016

Contributor

Please make such suggestions on the mailing list, not here. Also see what the links from process-bot have to say on this.

Contributor

jvoigtlaender commented Dec 4, 2016

Please make such suggestions on the mailing list, not here. Also see what the links from process-bot have to say on this.

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