Function Function.withParametersAt

Return a new Function object with newParameters inserted at the specified index in the attributes.

immutable(Function) withParametersAt (
  uint index,
  immutable(Parameter)[] newParameters...
) immutable;