Iterator chaining vs. recursion

⚓ Rust    📅 2025-06-23    👤 surdeus    👁️ 6      

surdeus

Warning

This post was published 49 days ago. The information described in this article may have changed.

Playground: Rust Playground

I'm trying to chain iterators in a recursive function. The function is supposed to return a iterator, but using .chain results in a Chain. A Chain is iterator-like - it offers .map - but it won't convert to an iterator. How do I do this?

1 post - 1 participant

Read full topic

🏷️ rust_feed