Same with `result`. Better name: `path_components`.