modify

open fun modify(root: Root, update: (Value) -> Value): Root

Transforms the focused value and returns the resulting root.