3 ms·
I wish `and_then` were named `flat_map` so badly.
by tikue_ 12y ago
I wish `and_then` were named `flat_map` so badly.
- Manishearth 12y agoWe 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.