modifyList
R/state.R
reducer_merge.Rd
Performs a shallow merge of new into old using modifyList(). Useful for nested configuration state.
new
old
modifyList()
reducer_merge()
A two-argument function function(old, new).
function(old, new)
r <- reducer_merge() r(list(a = 1, b = 2), list(b = 99, c = 3)) #> $a #> [1] 1 #> #> $b #> [1] 99 #> #> $c #> [1] 3 #>