adds an external function.
the ID assigned to that function that will be used in the bytecode
See Implementation
adds an external function.