|
|
| What's a pythonic way of creating a curried function? Say I have a function that expects a function of one paramter, and I have a function of two parameters. I'd like to bind one of the parameters of the second function so I can pass it to the first. I can do that with a lambda expression and a default argument, but it seems a little unclean. |
| Peter Pitt, you want a curry Or what you might call a partial call or partial invokation |
| Right. :-) But I imagine Python doesn't have a bind1st function. :-) |