-
Suppose we have a function that looks for a file that could be in different places depending on the given feed type. Although not strictly reusable, it's nice to keep all the logic related to finding this file in one place rather than creating multiple functions for each feed type. From reading this tutorial it would seem that the recommended way is to alias the function, but I'm not sure about how to provide the feed type parameter to it.
I tried adding
Which explains what is happening really well, but assumes that I want to treat the parameter as input which is not quite the case as this is the first step in the pipeline. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You might want to try
|
Beta Was this translation helpful? Give feedback.
-
This is beautiful, thank you! :) |
Beta Was this translation helpful? Give feedback.
You might want to try
configured
, which allows you to curry in config values into a solid definition: