News for hackers. Stuff that matters.
Re:Rust for Rubyists by isaacg on Monday December 25, 2017 @01:54AM (#16003080)
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...

Re:Rust for Rubyists by omn1 on Monday December 25, 2017 @08:23AM (#16003994)
Thanks for the hint. Will fix that and give you some credits.
Re:Rust for Rubyists by omn1 on Thursday January 04, 2018 @08:53AM (#16070284)
Edit fixed.