How to Program Generics with Swift

How to Program Generics with Swift (Episode 22)
May 16, 2016 Justin

How to Program Generics with Swift (Video Tutorial Podcast Episode 22)

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. Like many of our previous Swift tutorial video podcasts, we’ll work in an iOS Playground file, but this same code works fine in any Swift based project: Mac, tvOS, iOS.

Hosts: Justin Dike, Clevon O’Doul

Watch Fullscreen


Subscribe to this Podcast on iTunes


Become part of the CartoonSmart Team with our Affiliate Program

Make recurring money when you refer a subscriber. 30 day tracking. Commissions 33%-50%!

Uh oh, missing your affiliate ID. Create one real quick