A lot has been told about the guard statement since its appearance in Swift. Indeed, it simplifies code and makes it more readable. But is guard really a silver bullet?
A common Swift problem is that extensions of generics can only be constrained to protocols. We use a lot of big words here but this issue is quite common and a simple example will…
In the previous article, while trying to understand a major difference between Arrays and Dictionaries, we created our own sequence. But we can go deeper.
Sequence is the most basic set notion given by the Swift standard library. There is a more evolved one.