I have a list of functions. I want to call each possible combination of these functions, where each function is either called once or not at all. It doesn't matter that order they are in.
Example:
functionList = [function1, function2, function3]
I would like to call function1() on its own and also function1() + function2() and also function1() + function2() + function3() and also function2() etc
How would I implement this in python? I thought to use itertools.combinations however it doesn't seem I can use that for my problem.