Common operations for linked-list-like path structures
Returns the common prefix of paths. Assumes that if two pointers are different, they point at different paths. Destructively mutates paths as scratch space.
See Implementation
Common operations for linked-list-like path structures