Join Slack
Powered by
Is there anything akin to a lambda/anonymous task ...
# ask-community
a
Alex Furrier
02/10/2021, 5:19 PM
Is there anything akin to a lambda/anonymous task in Prefect? E.g. I have an iterable and want to transform it into a dictionary. I could define a task to do so but in this case something that simple could be done with an anonymous function
j
Jim Crist-Harif
02/10/2021, 5:19 PM
You can do
prefect.task(lambda x, y: ...)(x, y)
a
Alex Furrier
02/10/2021, 5:20 PM
awesome. Thanks!
Open in Slack
Previous
Next