concept generic type in category swift
appears as: generic type, The generic type, generic types

This is an excerpt from Manning's book Swift in Depth.
Range is a type that represents a lower and upper bound. The <Date> notation indicates that Range is storing a generic type, which you’ll explore deeply in chapter 7.
Swift’s built-in generic types are covariant, which means that generic types can be subtypes of other generic types. Covariance explains why you can pass an Int to a method expecting an Int?.
In chapter 4, you delved into how Optional uses a generic type called Wrapped to store its value, as shown in the following listing.