Return a new document with the node at path replaced by fn(node), rebuilding the ancestor spine (structural sharing everywhere else).
path
fn(node)
Return a new document with the node at
pathreplaced byfn(node), rebuilding the ancestor spine (structural sharing everywhere else).