Commit Graph

2 Commits

Author SHA1 Message Date
practicalswift
98838a1a6f [gardening] Use consistent headers 2017-04-14 17:35:37 +02:00
Maxim Moiseev
98e6cafdc8 [stdlib] Adding a deprecated version of flatMap to warn misuses. (#7823)
Due to implicit promotion to optional it is possible to call flatMap
with a closure, that does not return an optional. This way the code
works, but is unnecessary inefficient. Such uses of flatMap can and
should be replaced with map.
2017-03-06 10:16:42 -08:00