Generic type
In Swift, a generic type is a placeholder for a specific type that is specified when the generic type is used. A generic type allows you to write flexible and reusable code that can work with any type, while still taking advantage of type safety.
For example, you