Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Implement sorted() builtin #144

Closed
wants to merge 5 commits into from
Closed

Implement sorted() builtin #144

wants to merge 5 commits into from

Conversation

MirkoDziadzka
Copy link
Contributor

A simple implementation of the sorted() builtin function for issue #16

It does not handle keyword arguments (for modifiers) like cmd, key and reverse (it fails hard when any kwargs are provided)

Implementation is done by copying the first argument (handled as an iterable) to a new list and use the builtin method sort() on this new list.

@MirkoDziadzka MirkoDziadzka deleted the implement-sorted branch January 18, 2017 09:18
nagayev pushed a commit to nagayev/grumpy-old that referenced this pull request Oct 29, 2020
fixes issue google#67 - replace AssertionError with False and respective error string
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant