flatMap is alive and well. Just make sure your sequence of sequence and its elements are non-optional. If they are then you will trigger the deprecated version of the flatMap function which will then suggest the use of compactMap.
Topic:
Programming Languages
SubTopic:
Swift
Tags: