The type of the value to be accessed.
The nested record to access
An array of strings representing the path to the desired value
A tuple containing:
value: The value at the path, or undefined if the path does not existsetValue: A function that sets a new value at the path, creating intermediate objects as needed
Accesses a nested record at the given path, returning both the current value and a setter function.