swift
98e6cafd - [stdlib] Adding a deprecated version of flatMap to warn misuses. (#7823)

Commit
8 years ago
[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.
Author
Parents
Loading