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

Weird order for Maybe.andThen #505

Closed
calebmer opened this Issue Feb 21, 2016 · 4 comments

Comments

Projects
None yet
2 participants
@calebmer

calebmer commented Feb 21, 2016

Why is Maybe.andThen defined like:

andThen : Maybe a -> (a -> Maybe b) -> Maybe b

Instead of:

andThen : (a -> Maybe b) -> Maybe a -> Maybe b

Because it is defined the other way around it is much more difficult to compose.

@jvoigtlaender

This comment has been minimized.

Show comment
Hide comment
@jvoigtlaender

jvoigtlaender Feb 21, 2016

Contributor

This is a question for the mailing list: https://groups.google.com/forum/#!forum/elm-discuss

Contributor

jvoigtlaender commented Feb 21, 2016

This is a question for the mailing list: https://groups.google.com/forum/#!forum/elm-discuss

@calebmer

This comment has been minimized.

Show comment
Hide comment
@calebmer

calebmer Feb 21, 2016

Due to my circumstances I can't participate in the mailing list.

calebmer commented Feb 21, 2016

Due to my circumstances I can't participate in the mailing list.

@jvoigtlaender

This comment has been minimized.

Show comment
Hide comment
@jvoigtlaender

jvoigtlaender Feb 21, 2016

Contributor

Hmm, weird.

Contributor

jvoigtlaender commented Feb 21, 2016

Hmm, weird.

@jvoigtlaender jvoigtlaender reopened this Feb 21, 2016

@jvoigtlaender

This comment has been minimized.

Show comment
Hide comment
@jvoigtlaender

jvoigtlaender Mar 20, 2016

Contributor

Closing this, since obviously no discussion is going to happen here.

Contributor

jvoigtlaender commented Mar 20, 2016

Closing this, since obviously no discussion is going to happen here.

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