# ask-community

Abhinav Ayalur

12/05/2022, 1:37 AM
Hey there, I was thinking of using Dagster to route messages throughout my platform and I was wondering if there was a way to "join" lists of outputs created by two separate tasks? So if I have task 1 that outputs a list of elements and task 2 that outputs a list of other elements, assuming they have the same length what is the best way to join them together for my third task?


12/05/2022, 3:03 AM
something like this?
Copy code
def a():
    return [a,b,c]
def b():
    return [1,2,3]
def c(a,b):
   return [x,y for x,y in zip(a,b)]
def g():
    return c(a(),b())