modify func(x) { "This is the modfunc3 version of func(<>)\n"; replaced(x + '[4]'); } replace func(x) { "This is the replaced func3(<>)\n"; }