@Gankro I love thinking of `Option` as a container with a maximum count of 1
ITYM take a list of things, transform each thing into a list; and combine the results into one. You forgot the map part of flat_map
-
-
character limit -- I haven't generally seen "lossy" flat_maps. I think all I've seen are ones that "strictly grow". Disagree?
-
main example I think of immediately is Iterator<Option<T>> -> Vec<T> via flat_map (or Result).
- 12 more replies
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.