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

add sorted to curried namespace #72

Merged
merged 1 commit into from
Nov 8, 2013
Merged

Conversation

mrocklin
Copy link
Member

@mrocklin mrocklin commented Nov 7, 2013

This allows a curried sorted(key=func, reverse=True) to be used within functions like compose and pipe

@eigenhombre
Copy link
Member

Reviewed; no opinion; ok w/ me to merge.

@@ -14,6 +14,8 @@

from functools import partial, reduce

sorted = sorted
Copy link
Member

Choose a reason for hiding this comment

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

Is this actually needed? Curious.

@eriknw
Copy link
Member

eriknw commented Nov 7, 2013

Yeah, makes sense to add this to curried.

mrocklin added a commit that referenced this pull request Nov 8, 2013
add sorted to curried namespace
@mrocklin mrocklin merged commit 6eb6032 into pytoolz:master Nov 8, 2013
@mrocklin
Copy link
Member Author

mrocklin commented Nov 8, 2013

Merged

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.

None yet

3 participants