Reduce a list of function argsuments by taking a function body and returning only the arguments that belong to the function signature.

keep_only_fun_args(Args, fun)

Arguments

Args

A list of function arguments to be streamlined.

fun

A function whose signature will be used to reduce the arguments passed in.