Forging a Swift Sequence

The Swift Standard Library ships with many collections such as Arrays, Dictionaries and Sets. In addition to its English Language meaning, Collection also means a Swift protocol that inherits from…

Making a case for Result

Swift introduced the Result type in its 5.0 release (Apple documentation). Using it, we can represent both success and error cases with a single type. It is highly useful with…

Error. A localized description

I was living under a rock until very recently and believed that the Error protocol was truly empty with no requirements. While it is true that there are no requirements,…