Swift | One-Liner
One-Liner, terse (accepted answer)\n\nclass Solution {\n    func findIntersectionValues(_ a: [Int], _ b: [Int]) -> [Int] {\n        [(a,Set(b)),(b,Set(a))].map{
**One-Liner, terse (accepted answer)**\n```\nclass Solution {\n    func findIntersectionValues(_ a: [Int], _ b: [Int]) -> [Int] {\n        [(a,Set(b)),(b,Set(a))].map{$0.0.filter($0.1.contains).count}\n    }\n}\n```\n
['Swift']