Hacker News new | ask | show | jobs
by Akronymus 1372 days ago
You could model that with one function taking that dependency and returning a new one with it included. Then you just use the one that has it included instead of the one that doesn't.
1 comments

You still have to construct and pass in that dependency though, along with all of its dependencies, recursively.