Which programming language is this?
let names = users.compactMap { $0.nickname }
Answer: Swift
compactMap drops nils while mapping — a Swift standard-library method.let names = users.compactMap { $0.nickname }
Answer: Swift
compactMap drops nils while mapping — a Swift standard-library method.