Function insertion

Is there a way to insert a function at the start of a module rather than inserting it at the end, which happens by default?

Maybe, but... why?


You can create the function without specifying the module to insert into, then use M.getFunctionList().insert(..) to put it wherever you like.