Write a function args_and_body
that accepts a function as input and returns a list with two components: a component named args
that contains a pairlist of the input’s formal arguments, and a component named body
that contains the input’s body. Test this function by calling it with sd()
(no need to store this result in an object).
(from: Cotton, 2013, Learning R, O’Reilly)