Avatar
おお? print(["ab", "cd"].flatMap { return $0 }) // ["a", "b", "c", "d"] print(["ab", "cd"].flatMap { $0; return $0 }) // ["ab", "cd"] https://twitter.com/gregheo/status/928787861507207168
Swift observer effect at work: 😜 print(["ab", "cd"].flatMap { return $0 }) // ["a", "b", "c", "d"] print(["ab", "cd"].flatMap { $0; return $0 }) // ["ab", "cd"]