7 points
*
Do you mind explaining? Maybe with the context of another languages equivalent?
13 points
let bar: Result<T, E> = ...;
let foo = bar.inspect(|value| log::debug("{}", value));
is equivalent to
let bar: Result<T, E> = ...;
let foo = bar.map(|value| {
log::debug("{}", value);
value
});
1 point
1 point
2 points
1 point
*