Open lambda-fairy opened 8 years ago
The .collect() instance for Result and Option is pretty useful, but is often overlooked by newcomers. I'd like to see an article that describes it.
.collect()
Result
Option
Writing explicit Ok(...) or Some(...) respectively has the advantage of being more explicit but otherwise equivalent.
Ok(...)
Some(...)
The
.collect()
instance forResult
andOption
is pretty useful, but is often overlooked by newcomers. I'd like to see an article that describes it.