Conditional function implementation

You’re running into disallow methods of local functions in different blocks · Issue #15602 · JuliaLang/julia · GitHub and this is also warned against in the docs.

3 Likes