JuliaCollections / JuliaCollections/AbstractTrees.jl
Iterating without a tree
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 243
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
I've read the docs but I haven't been able to find an answer to my question.
I would like to understanding the following. I have a mutable struct and a few functions defined on it that mutate in the same structure of a tree. I.e. I have a "movetoparent!(obj)" function, and a "movetochild!(obj, i)" function. Can I use AbstractTrees.jl to walk a tree in this case?
I've asked this question on discourse, where I go into more details
https://discourse.julialang.org/t/abstracttrees-iterating-without-a-tree/96339
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the existing AbstractTrees.jl documentation and the linked Discourse discussion for the mutable-struct traversal question. Clarify whether the documented interfaces support this usage, and identify any documentation changes or example needed to make the answer explicit.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100