Swift - clean solution
```\n    func isAnagram( s: String, _ t: String) -> Bool {\n        guard s.length == t.length else { return false }\n        \n        var map = Character:Int\
```\n    func isAnagram(_ s: String, _ t: String) -> Bool {\n        guard s.length == t.length else { return false }\n        \n        var map = [Character:Int]()\n        s.forEach({ map[$0, default: 0] += 1 })\n        t.forEach({ map[$0, default: 0] -= 1 })\n        \n        for (_,v) in map {\n            if v != 0 { return false }\n        }\n        \n        return true\n    }
[]