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

Allow partial application / currying #2

Open
Planeshifter opened this issue Jun 27, 2015 · 1 comment
Open

Allow partial application / currying #2

Planeshifter opened this issue Jun 27, 2015 · 1 comment
Assignees

Comments

@Planeshifter
Copy link

Would be great if one could simply call polyval( coef ) and get a new function back with the specified coefficients. Although one can do this simply by using the .bind() method, I believe this would be more convenient and natural.

@kgryte
Copy link
Contributor

kgryte commented Jul 2, 2015

Yes, this seems reasonable. I would probably opt for an exported factory method (for inspiration, see dstructs-ndarray). I would like to avoid .bind, as this is a perf killer.

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

No branches or pull requests

2 participants