This small rust crate provides TransIter
, an iterator suitable for navigating
recursive structures and DAGs. The iterator allows for multiple modes of
iteration.
In addition to the iterator itself, this crate provides some convenience traits for creating such an iterator.
```rust use transiter::IntoTransIter;
let names: Vec<_> = String::new() .transiterwith(|s| { let s = s.clone(); ["a", "b", "c"].iter().map(move |c| s.clone() + c)}) .take(10) .collect(); assert_eq!(names, vec!["", "a", "b", "c", "aa", "ab", "ac", "ba", "bb", "bc"]); ```
The following crates serve a similar purpose:
This work is provided under the MIT license. See LICENSE
for more details.