Module functions logic depend on whether the third party library is used or not

You could do

foo = isdefined(MyModule, :SN) ? SN : (x,y)->x+y

and then no checking is performed inside loops

1 Like