Explain how -flattenMap: combines the two operators