Since this function needs to handle recursive functions, it needs to know the name of its input function, so this must be provided as a bare symbol.
loop_transform(fun, byte_compile = TRUE)
The function to transform. Must be provided as a bare name.
Flag specifying whether to compile the function after transformation.