-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a utility function for converting path.Trace to a list
There are cases in which users of path.Trace want to do forward iteration of the path. path.Trace does not permit it, because it's a backward pointing linked list. Instead of adding a ToList() function, we could have extended Trace to implement Parser. But this is needlessly complex, because traces are guaranteed to be well formed, and unlike Builder don't contain any ".." components.
- Loading branch information
1 parent
02b8a19
commit 3f5e30c
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters