JuliaCollections / JuliaCollections/AbstractTrees.jl

Iterating without a tree

Open
#133 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.