@Gankro I love thinking of `Option` as a container with a maximum count of 1
-
-
Replying to @JakeGoulding
"take a list of lists and concat the sublists into one" "keep doing some fallible op until one step fails" SO DIFFERENT
4 replies 0 retweets 0 likes -
Replying to @Gankra_
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
1 reply 0 retweets 0 likes -
Replying to @JakeGoulding
character limit -- I haven't generally seen "lossy" flat_maps. I think all I've seen are ones that "strictly grow". Disagree?
2 replies 0 retweets 0 likes
Replying to @Gankra_
Also Option<Option<T>> -> Option<T>. You *could* just have `flatten`, but the `map` is “for free”.
11:43 AM - 11 Aug 2016
0 replies
0 retweets
0 likes
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.