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.
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.
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.