The lambda function is:
lambda x: x.split('=')
the partial function would look something like:
str.split('=')
The lambda function is:
lambda x: x.split('=')
the partial function would look something like:
str.split('=')
Python has a function that does partial functions
from functools import partial
the partial function accepts callable function as the first argument and the rest are arguments to be applied to the function
partial(str.split, sep='=')