O'Reilly logo

Swift for the Really Impatient by Dave Wood, Matt Henderson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Generics

Topics in This Chapter

Image 5.1 Why Generics?

Image 5.2 Generic Functions

Image 5.3 Generic Types

Image Exercises

Generic programming involves defining algorithms in such a way that they are type agnostic, with the actual types involved specified later, when the algorithm is used. By programming using generics, you can create generic templates for functions ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required