Swift provides generics that make it possible to write code that is not specific to a type and can be utilized for different types.