Skip to content
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

Upgrade List.sort builtins #7006

Open
lukewilliamboswell opened this issue Aug 17, 2024 · 0 comments
Open

Upgrade List.sort builtins #7006

lukewilliamboswell opened this issue Aug 17, 2024 · 0 comments
Labels
blocked Prevents this PR from auto-closing after 30 days of inactivity builtins Relates to roc builtins like Bool, List, Str ... enhancement New feature or request

Comments

@lukewilliamboswell
Copy link
Collaborator

Zulip discussion

Supersedes #6988
Supersedes #6989

sort: List elem -> List elem where elem implements Sort
sortBy: List elem, (elem -> field) -> List elem where field implements Sort
sortWith: List elem, (elem, elem -> [ LessThan, Equal, GreaterThan ]) -> List elem

# Then the reversed versions:
sortReversed: List elem -> List elem where elem implements Sort
sortByReversed: List elem, (elem -> field) -> List elem where field implements Sort
sortWithReversed: List elem, (elem -> [ LessThan, Equal, GreaterThan ]) -> List elem

Blocked until #6615 is implemented.

@lukewilliamboswell lukewilliamboswell added enhancement New feature or request builtins Relates to roc builtins like Bool, List, Str ... blocked Prevents this PR from auto-closing after 30 days of inactivity labels Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Prevents this PR from auto-closing after 30 days of inactivity builtins Relates to roc builtins like Bool, List, Str ... enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant