How to use flatMap and compactMap in Swift

Issue #425

flatMap: map and flatten array of arrays
compactMap: map and flatten array of optionals

Comments