Organizing code into functions—am I doing it right?

That’s a matter of personal preference, but writing small kernel functions is a technique very well suited to Julia (because of parametric multiple dispatch, the way the compiler works, and unit testing when applicable).

I am not sure what you mean here, stated where?

In any case, please

  1. use quoted blocks, not screenshots,
  2. provide an MWE,
  3. include Julia code instead of Python code.
2 Likes