How to Program Generics with Swift (Episode 22)

Published: May 17, 2016, 1:11 a.m.

In this video tutorial we'll look at how to use Generics in a Swift function. A generic function or method works on collections of different types. Or to put it another way, a function could accept different parameter types when called. In this lesson we'll use two simple types, String and Int.