-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to map multiple patterns in mapsubtrees
?
#74
Comments
This seems like a very useful function to have. I wonder if it will be difficult to have consistent semantics for the non-happy path cases. For example, what should it do if the number of matches is not balanced (i.e number of matches for Here is an example of what I usually do when I need to combine multiple files in the same dir: #51 (comment) It does not have as convenient syntax as your example, but one can add that if needed. It is basically a Reason why I have not put in into |
|
Oh i see what you mean. I think you could do something like get the tree for the output, rename ".out" to ".in", and then merge the original .in tree with a function to combine. |
Suppose I have a
FileTree
and two patterns:*.in
for input files and*.out
for output files. Usually, in the same folder, there will be two files: a*.in
paired with a*.out
. How can I match them at once inmapsubtrees
? Like the following syntax:The text was updated successfully, but these errors were encountered: