We're continuing our series of articles about generic development, and more specifically about creating our own data types in Swift. This time we go a little deeper into the Swift syntax for generics, to be able to apply certain restrictions to our types (i.e.: force conformation to protocols). After that, we re-visit another old friend from the past, the stack, providing a complete implementation based on singly-linked lists.
Come and check it out to read the full article and download the included interactive Playground
here!!