Closure

Functional programming #rstats: closure hack for parallel processing on windows!

4 minute read Published:

This post describes a useful application of functional programming. Parallel processes on Windows don't have access to the global environment. Closures can encapsulate dependencies in the functions you pass, saving you from missing function errors.