Convert a function call into an inline expression