Retrieves a value depending on the patch operation where delete is mapped to null and none is mapped to the value returned by given the current function.
Transforms the value for set operations by calling the provided transform function and creating a new set operation; all other patch operations (delete and none) are returned as is.