https://github.com/n8henrie/treeiter
Example of depth-first iteration over a tree in Rust
https://github.com/n8henrie/treeiter
Last synced: 3 months ago
JSON representation
Example of depth-first iteration over a tree in Rust
- Host: GitHub
- URL: https://github.com/n8henrie/treeiter
- Owner: n8henrie
- Created: 2021-09-01T21:53:35.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-06-08T01:48:51.000Z (almost 3 years ago)
- Last Synced: 2024-12-27T16:25:32.930Z (5 months ago)
- Language: Rust
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# treeiter
It seems like I'm always wanting to do something with trees in Rust, and I have
a hard time figuring out how to make an iterator for e.g. depth-first search.This is a repo where I can annotate code I found in [a really helpful Reddit
comment](https://www.reddit.com/r/rust/comments/fsbqwp/how_to_iterate_trees_nicely/fm1cc0j?utm_source=share&utm_medium=web2x&context=3).Many thanks to [u/redartedreddit](https://www.reddit.com/user/redartedreddit/)!