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: / emacco
Twitter: / its_macco
Additional Resources:
https://docs.swift.org/swift-book/Lan...