What is the meaning of the following function call?
InferTreeExp(frozenset(), inputList)
Here, the function frozenset() is passed without any parameters, inputList is an iterable (list) and InferTreeExp() is a user-defined function.
What's expected by calling frozenset() without a parameter passed?
As I can understand, frozenset(iterparam) creates an immutable set object from an iterable list passed as the parameter. Since here, there is no parameter passed, I do not understand the purpose or the result of calling the function.
frozensetis just that, an immutable (frozen)set; calling it without any parameters or passing it an empty terable will create an empty instance of it, which is an iterable itselfThis might be useful, for example, if the function checks for this specific case, simply to have an empty iterable which won't be mutated, or when the function defines some set logic