3 ms·
How does this improve on binding the `Err`? Edit: I see now in the first example: let (Some(count_str), Some(item)) = (it.next(), it.next()) else {
by queuebert 4y ago
How does this improve on binding the `Err`?
Edit: I see now in the first example:
let (Some(count_str), Some(item)) = (it.next(), it.next()) else {
panic!("Can't segment count item pair: '{s}'");
};
Binding the error here would be much verbose, since both must succeed.
Edit2: Doh, obviously `None` in this example, not `Err`.