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
filter_map expects an Option, flat_map expects an IntoIterator, it just happens that Option implements IntoIterator
-
-
Well yeah, but why have both if `flat_map` works literally everywhere `filter_map` does?
-
Purely philosophical difference?
End of conversation
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.