Goal here is to input many functions but only make one mutation in one the functions to better isolate the effect of the mutation. See Details.

mutate(x)

Arguments

x

a list of output from parse_fxns()

Value

a list of the above

Details

use a while loop internally; attempt to mutate each function until we make a successful mutation, and then return the complete set of functions with one function with one mutation

Examples

if (FALSE) { foo <- function(x) { if (x == 1) x else 5 } bar <- function(w) { if (w == 10) w else 5 } mutate(list(foo, bar)) }