David Haynes
05/06/2022, 9:07 PMKevin Kho
David Haynes
05/06/2022, 9:16 PMKevin Kho
Kevin Kho
@task
def abc(x):
return x+1
@task
def bcd(list_x):
sum(list_x)
with Flow(...) as flow:
a = abc.map([1,2,3,4,5])
b = bcd(a)
a will be of type list here because it was the output of map. and bcd
will take in a list because it is a reduce
stepDavid Haynes
05/06/2022, 10:29 PMDavid Haynes
05/06/2022, 10:29 PMDavid Haynes
05/06/2022, 10:35 PMDavid Haynes
05/06/2022, 10:51 PM