Passing arguments explicitly to a closure or not

Lastly, when defining closures, one must focus on the captured variables. Their performance is described in the documentation, here.

In my example above, the first case described in the documentation does not apply, while the second case, if the captured variables do not need to be boxed at all, I could use let blocks on the closures.

So now I am starting to see that the Julia documentation is complete :smile:

2 Likes