Jumping to conclusions
In an article yesterday, I mentioned that I wasn’t having much luck extending Dictionary to give it an initializer that took a sequence of tuples, because my attempt wasn’t compiling, even though I was sure that it should:
extension Dictionary { init (_ seq: S) { self.init() for (k,v) in seq { self[k] = v } } }
View On WordPress













