|
|
|
|
|
by winstonewert
3277 days ago
|
|
I can get the same effect as currying with C syntax by deliberating invoking a special function: functools.partial(old_function, my_new_argument)
Is this such a useful thing that you need the functional style syntax to make it even easier to do? |
|
Add 5 to each num in a list (using a pretend function called `add` in both languages to be fair):
Add 5 to each in a list of list of numbers: