also objectively this is the best x.flatMap { (y) in do_stuff(y) .flatMap { do_more_stuff(y, $0) }}
-
-
No, you're putting the & in front of a value of type `String`
-
A reference is a different type than the referred-to type. You can’t pass “foo”.to_string() where &str is needed.
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.