Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: