[SR-7523] flatMap should be compact map in specific case #50065
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Environment
Version 9.3 (9E145)
Swift 4.1
Additional Detail from JIRA
md5: 465ff5325f60aedb3bcc1562fda22cee
Issue Description:
In this code:
There is no warning in Swift 4.1. It seems like this should be a compactMap, not a flatMap.
It seems like the problem is with:
I think this function should be deprecated and replaced with compactMap
The text was updated successfully, but these errors were encountered: