Robin10/19/2020, 4:15 PM
Jim Crist-Harif10/19/2020, 4:25 PM
Robin10/19/2020, 4:52 PM
reduce_list = task(lambda list_of_lists: reduce(list.extend, list_of_lists, ))
did the trick 🙂
@task def reduce_list(list_of_lists): out =  for l in list_of_lists: out.extend(l) return out
Jim Crist-Harif10/19/2020, 8:38 PM
, which will do that for you (but potentially in a more efficient way).
See https://docs.prefect.io/core/concepts/mapping.html#flat-mapping for more info.
Robin10/19/2020, 9:06 PM