Hacker News new | ask | show | jobs
by Manishearth 4097 days ago
We have `flat_map` for iterators. (`and_then` works for Options, which are basically nullables)

You can convert an Option to a zero-cost iterator and then use `flat_map` though.