enter code here
a <- new("A")
param(a) <- list(stuff = "MyStuff")
a <- setParamElement(a, "stuff", "NewStuff") print(a@param$stuff) # Output: "NewStuff"