Skip to content

Conversation

@gampleman
Copy link
Collaborator

Wanting to sort things wrapped in Maybe is a fairly common use case. The alternative is fairly annoying, since you need to pattern match on 2 maybes leading to 4 cases.

@gampleman gampleman requested review from lue-bird and miniBill May 19, 2025 08:43
Copy link
Collaborator

@lue-bird lue-bird left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
Preference: Maybe saying "less" and "greater" is better than "first" and "last" (or even nothingGreaterJust and justGreaterNothing or something)

@gampleman
Copy link
Collaborator Author

While nothingLess sounds kind of poetic, I'm gonna stick with the names proposed here since I find them much more intuitive myself.

@gampleman gampleman merged commit 35d99e5 into master May 20, 2025
4 checks passed
@gampleman gampleman deleted the add-maybe-helpers-for-order branch May 20, 2025 07:41
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.

3 participants