Hi :wave:, If I do a `my_function.map(a, b)` where...
# prefect-community
n
Hi 👋, If I do a
my_function.map(a, b)
where
len(a)
is 2 and
len(b)
is 5, will this result in 10 runs? Currently I think it only runs twice : / 🤔
n
Hi @Newskooler - I think that's correct that it will only run twice - subsequent iterations on
b
would be accessing non-existent values for
a
, so the map has to appeal to the lowest common denominator
n
Okay; i was thinking suggest this to be changed, as I would consider this to be unexpected behaviour. Should I or is this the desired behaviour?
n
I would consider this to be desired behavior but you're welcome to open a ticket or a discussion thread on GitHub to describe the behavior you'd like to see for your use case; it's possible others have the same thought.
👍 1
n
Okay, will do that. :) thanks!
😄 1
n
Good stuff @Newskooler, thank you 🙂
👍 1