getFunArgs() is a method of the mechanism class which takes an input target function and finds the arguments of that target function which are in the class fields and returns the associated field values. Similarly getFuncArgs is a utility function which takes as input a target function and a named list, and returns the values in the list which match arguments to the target function. Since both have similar code, perform similar purposes, and because their nearly identical naming leads to bad code readability, they should be merged together.
getFunArgs() is a method of the mechanism class which takes an input target function and finds the arguments of that target function which are in the class fields and returns the associated field values. Similarly getFuncArgs is a utility function which takes as input a target function and a named list, and returns the values in the list which match arguments to the target function. Since both have similar code, perform similar purposes, and because their nearly identical naming leads to bad code readability, they should be merged together.