Emmanuel Okwara
Today we learn about Generics and how we can avoid code duplication using this concept.
In this video, we create a Generic function for adding two numbers. We also see how to create a Generic struct to accept different types of data.
Say Hi on Social Media: LinkedIn: https://www.linkedin.com/in/emacco/ Twitter: https://twitter.com/Its_Macco
Additional Resources: https://docs.swift.org/swift-book/LanguageGuide/Generics.html ... https://www.youtube.com/watch?v=V-D799BpfAg
26296457 Bytes