Injects tagged values into a function.
oryx.core.plant(
f, *, tag, **harvest_kwargs
)
Transforms a function to one where tagged values can injected. In
implementation, returns a function that takes plants as an additional
initial argument.
Args |
f
|
a function to be transformed
|
tag
|
str , the harvest tag that will be planted.
|
**harvest_kwargs
|
additional keyword arguments that will be passed to
harvest .
|
Returns |
A function that takes in an additional initial input (a dictionary mapping
names to values to be injected).
|