Jeff Yun
09/30/2019, 6:47 PMflattened_lists = itertools.chain(*nested_lists_param)
but can't iterate through the Parameter itself.Chris White
09/30/2019, 6:49 PM@task(name='create-product')
def create_product(params1, params2):
return list(itertools.product(params1, params2))
and then map over the output of create_product
Jeff Yun
09/30/2019, 6:52 PMChris White
09/30/2019, 6:56 PMJeff Yun
09/30/2019, 7:00 PM@task
do_something = lambda p1, p2: one_thing(p1, p2)
prod = create_product(p1, p2)
result = do_something.map(prod)