I've seen lambda functions, with an argument of *x
. Is it a way you put in a list or a tuple, if it is a tuple how would you put a list as an argument parameter and vice versa.
If you could link me to some documentation, I would be grateful.
The lambda function in question:
import os
add_to_place = lambda *x : os.path.abspath(os.path.join(os.path.dirname(__file__), *x))
Thanks in advance. I've deduced that it is a tuple, but I'd like some documentation, just to be sure.