Swift Around the Web
"The most visible example of generic programming in Swift might be the humble
Array type. In Objective-C, instances of the array type
NSArray could contain objects of any type. However, Swift’s Arrays are always parameterized by the type of the items they contain, and so we have instances of
Array<UIView>, et cetera.
Array is a type, and
Int is a type, and generics allow these two types to work together in a way that makes sense and conveys extra information."
Pattern Matching taken to a whole new level - now with Generics!