You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
would it be possible to build a recursive helper for recursing on a tree-like structure?
E.G.:
{{recurse_with element.children tree}}
print something for {{element.value}}
{{/recurse_with}}
For a tree structure where
struct Tree {
value: String,
children: Vec<Tree>
}
For example? The first argument of the recurse_with helper would be a selector that gets the list of children nodes from a node.
To expand on that, I would like to implement depth-first and breadth-first recursion, but that shouldn't be too complicated if the basic helper is implemented.
The text was updated successfully, but these errors were encountered:
Argh,... my problem is actually not a tree structure, but a BTreeMap<Key, Value> where each value holds a list of Keys that are also in the map.
So, I actually do not need a recursive tree helper, but something different.
I'll leave this open anyways, it might be interesting for others.
Hi,
would it be possible to build a recursive helper for recursing on a tree-like structure?
E.G.:
For a tree structure where
For example? The first argument of the
recurse_with
helper would be a selector that gets the list of children nodes from a node.To expand on that, I would like to implement depth-first and breadth-first recursion, but that shouldn't be too complicated if the basic helper is implemented.
The text was updated successfully, but these errors were encountered: