Allow function composition using an operator
Discussions on Python.org
Allow function composition using an operator
Currently, Python does not have a nice way of composing functions, and right now you would have to do lambda x:f(g(x)) when with this syntax it could easily be f@g or f&g.I imagine some issues may occur if you have functions taking multiple arguments, or you want to have some of them pre-filled, which is where another operator could be used.
0 comments
No comments yet.