Generics in Swift
- 1 minGeneric code enables you to write flexible, reusable functions and types that can work with any type,
subject to requirements that you define.
You can write code that avoids duplication and expresses its intent in a clear, abstracted manner.