Swift bit manipulation one-liner solution
Code\n\nclass Solution {\n    func smallestEvenMultiple(_ n: Int) -> Int {\n        n & 1 == 0 ? n : n << 1\n    }\n}\n
# Code\n```\nclass Solution {\n    func smallestEvenMultiple(_ n: Int) -> Int {\n        n & 1 == 0 ? n : n << 1\n    }\n}\n```
['Bit Manipulation', 'Swift']