How to use Protocol Associated Types with Generics in Swift

Опубликовано: 28 Сентябрь 2024
на канале: Paul Solt
119
1

Learn how to use Protocol Associated Types with Generics in Swift.

I had a code challenge for an interview with Reddit that used Protocols with associatedType and constraints. That made the code harder to work with, so I had to revisit how they work.

Paul Hudson has a great resource on this topic: https://www.hackingwithswift.com/arti...

#swift #protocol #generics #iosdev #paulhudson #associatedtypes