AssociatedType in Swift – A Generic Adventure
Hello ladies and gentlemen, Leo here. Today we’ll explore a great language feature called associatedtype in Swift. In general terms, associatedtype is used when you need to have generic behavior in your protocols. It’s important because as Apple says: Generic code enables you to write flexible, reusable functions and types that can work with any type, […]