R/state.R
reducer_overwrite.Rd
The default reducer. Every update replaces the old value entirely.
reducer_overwrite()
A two-argument function function(old, new) that returns new.
function(old, new)
new
r <- reducer_overwrite() r("old", "new") #> [1] "new"