Is it possible to build a function that calculates all possible combinations?
EXAMPLE
RED, BLUE, GREEN
It should be
RED BLUE GREEN
RED BLUE
RED GREEN
RED
BLUE GREEN
BLUE
GREEN
Is it possible to build a function that calculates all possible combinations?
EXAMPLE
RED, BLUE, GREEN
It should be
RED BLUE GREEN
RED BLUE
RED GREEN
RED
BLUE GREEN
BLUE
GREEN