Re:More intuitive partial function application in Python
by wheelerof4te on Friday March 04, 2022 @06:25PM
(#30561993)
First mistake, making a function with 10 parameters.
We have data structures for that, if you need it. Just pass in a big struct/named tuple as one parameter. Bonus points if it is type hinted.
What if you have a function "f" that takes like 10 arguments and you need to pass it to a function "g" that expects as input a function takes 8 arguments.