I have a composite object that contains tree-like structure containing a parent and children. It looks like this:
- parent
- id
- name
- children
- children[0] -id -name -children -children[0] -id -name -children -id -name -children[0..i] -children[1,..i] -children[1] -id -name -children[0..i]
How to iterate through this structure?
Best
Aucun commentaire:
Enregistrer un commentaire