Skip to content

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