@Gankro I love thinking of `Option` as a container with a maximum count of 1
main example I think of immediately is Iterator<Option<T>> -> Vec<T> via flat_map (or Result).
-
-
ah, so basically just "filter, but our type system is too good to admit it"
-
oh no wait, our type system isn't https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.filter_map …
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.