-
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
mapmatches #36
Comments
Can't find it either. @sashi, should it be in there? From the description it seems a bit similar to |
@DrChainsaw wrong sashi, was it supposed to be for @shashi ? |
Uups, forgot that there are more than three people using this platform :) |
Any updates? |
Did Unfortunately I don't have access to the docsite so I won't be able to push updates to it. This should maybe be fixed in the long run. It has been less of an issue than it might seem since the package has a pretty stable API. |
How do I give you access to the docsite? I thought it's just a branch here? |
I am sorry, but as far as I understand, t = maketree("dir"=>([string(j)=>[(name=string(i), value=(i,j)]
for i=1:2] for j=1:3]
t1 = mapsubtrees("*") do subtree
reducevalues(vcat, subtree)
end |
@shashi : Not sure either what is needed. Whenever I push the doc job fails. Unfortunately the logs have expired but I'm pretty certain it is some kind of "unauthenticated" failure. Perhaps it is just some secret that needs to be configured. Currently the docs seem to be hosted in some domain which has your name in it (http://shashi.biz/). Perhaps things will just work if I point to the github pages. Let me know if this is ok with you.
Yes, all map functions return a FileTree.
This is exactly what the map-functions do. You need to select the appropriate map function depending on what you want
Both
Uuups! This needs to be fixed of course. Here is a valid example in the meantime: julia> t = maketree("dir"=>([string(j)=>[(name=string(i), value=(i,j)) for i=1:2] for j=1:3]))
dir/
├─ 1/
│ ├─ 1 (Tuple{Int64, Int64})
│ └─ 2 (Tuple{Int64, Int64})
├─ 2/
│ ├─ 1 (Tuple{Int64, Int64})
│ └─ 2 (Tuple{Int64, Int64})
└─ 3/
├─ 1 (Tuple{Int64, Int64})
└─ 2 (Tuple{Int64, Int64})
julia> mapsubtrees(t, r"[1,3]") do st
reducevalues(vcat, st)
end
dir/
├─ 1/ (2-element Vector{Tuple{Int64, Int64}})
├─ 2/
│ ├─ 1 (Tuple{Int64, Int64})
│ └─ 2 (Tuple{Int64, Int64})
└─ 3/ (2-element Vector{Tuple{Int64, Int64}}) |
that's just because shashi.github.io is aliased to shashi.biz... It would be possible to serve it on a different domain though. |
I think the way Franklin works has changed. Need to update the github action. |
The docs at http://shashi.biz/FileTrees.jl/patterns/ mention the function
mapmatches
, but that doesn't actually seem to be available. But I could be missing something really simple.The text was updated successfully, but these errors were encountered: