When you are working with types such as Int or String in Swift,you typically must declare the type or have the type inferred from the value. While this pattern makes some code clearer, sometimes you want to be able to use any type in your code. Generics gives you a way of doing just this.