How to use flatMap to map and flatten an array in one function. Use ...

How to use flatMap to map and flatten an array in one function. Use ...