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

Create library of common operators #10

Closed
EntilZha opened this issue Mar 11, 2015 · 3 comments
Closed

Create library of common operators #10

EntilZha opened this issue Mar 11, 2015 · 3 comments
Labels
Milestone

Comments

@EntilZha
Copy link
Owner

There are quite a few of common operators which are passed into functions such as map/filter/reduce. It might be a good idea to compile a library of common operators in functional.ops.

@EntilZha EntilZha self-assigned this Mar 11, 2015
@adrian17
Copy link
Contributor

Note that operator module already provides some insitric-like ready to use operators:

seq(range(1000)).fold_left(0, operator.mul)

If the ops module is going to happen, it could just be started with from operator import * so they can be instantly used from there.

@EntilZha
Copy link
Owner Author

Great idea, I didn't even know that existed.

@EntilZha EntilZha removed their assignment Apr 24, 2015
@EntilZha EntilZha added this to the 0.4.0 milestone May 9, 2015
@EntilZha
Copy link
Owner Author

I think the better place for this is to give examples in the docs of using this. Probably better to promote composing different modules/packages together than a single monolithic thing. If there are a set of very common and helpful operators, then it might make sense to add them.

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

No branches or pull requests

2 participants