Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kawogi
on Sept 7, 2024
|
parent
|
context
|
favorite
| on:
Creating an empty iterator of a certain type in Ru...
> 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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
I'd use `flatten()` to iterate over this nested type.