News for hackers. Stuff that matters.
Re:Creating an empty iterator of a certain type in Rust by kawogi on Saturday September 07, 2024 @02:44AM (#41471990)
> However, this solution is not very ergonomic, as it requires the user of the function to first check if the returned value is Some(iterator) and only then iterate over the iterator.

I'd use `flatten()` to iterate over this nested type.

There are no comments on this comment yet.