Skip to content

Implement key parameter for sorted built-in function#3371

Merged
chrisnovakovic merged 1 commit intothought-machine:masterfrom
chrisnovakovic:sorted-key
Jun 11, 2025
Merged

Implement key parameter for sorted built-in function#3371
chrisnovakovic merged 1 commit intothought-machine:masterfrom
chrisnovakovic:sorted-key

Conversation

@chrisnovakovic
Copy link
Copy Markdown
Contributor

This is optional, and behaves similarly to the key parameter in Python's sorted built-in function: the value is a function that is applied to each item in the list before they are compared.

This is optional, and behaves similarly to the `key` parameter in
Python's `sorted` built-in function: the value is a function that is
applied to each item in the list before they are compared.
Copy link
Copy Markdown

@mhbardsley mhbardsley left a comment

Choose a reason for hiding this comment

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

Thank you 🙏

@chrisnovakovic chrisnovakovic merged commit 20576ee into thought-machine:master Jun 11, 2025
13 checks passed
@chrisnovakovic chrisnovakovic deleted the sorted-key branch June 11, 2025 09:09
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.

2 participants