Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
isaacg
on Dec 25, 2017
|
parent
|
context
|
favorite
| on:
Rust for Rubyists
The filter_map explanation is wrong. .ok() converts a result to an Option, not a boolean. Likewise, filter_map expects an option. That's how it can both filter and map.
Docs:
https://doc.rust-lang.org/std/result/enum.Result.html#method...
mre
on Dec 25, 2017
[–]
Thanks for the hint. Will fix that and give you some credits.
mre
on Jan 4, 2018
|
parent
[–]
Edit fixed.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Docs: https://doc.rust-lang.org/std/result/enum.Result.html#method...