Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bpo-35853: More higher order function combinators in functools #11699

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

Closed
wants to merge 3 commits into from

Conversation

TobiasPleyer
Copy link

@TobiasPleyer TobiasPleyer commented Jan 29, 2019

New functions:

  • identity
  • compose
  • sequence

https://bugs.python.org/issue35853

Definitions added for

- identity: The identity function which returns its input
- compose: Create a function pipeline (threaded computation)
- sequence: Use compose without binding it to a variable
@rhettinger
Copy link
Contributor

See the comments on the tracker issue.

Thank you for the patch. In the future, consider saving time by discussing with use whether an idea makes sense for Python before jumping to an implementation.

FWIW, I think there are a number of combinator toolkits already on PyPI. It might be worthwhile to take a look at those and possibly submit additional patches to those projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants