Swift Fundamentals LiveLessons: Part II, Lesson 11: Generics, Downloadable Version

Swift Fundamentals LiveLessons: Part II, Lesson 11: Generics, Downloadable Version

Swift Fundamentals LiveLessons: Part II, Lesson 11: Generics, Downloadable Version

Rather than writing separate code to perform identical tasks on different types (e.g., summing an Array of integers vs. summing an Array of floating-point values), generics enable you to write the code once and use placeholders to represent the type(s) of data to manipulate. In this lesson, you explore the motivation for generics in Swift and learn how to create your own generic functions, methods and type

Price
Paid
Platform
InformIT
Categories
Video by Chapter

Related Courses

Explore similar courses.

Swift Fundamentals LiveLessons: Parts I and II (Video Training)

Swift Fundamentals LiveLessons: Parts I and II (Video Training)

In Swift Fundamentals Live Lessons, Paul Deitel teaches core Swift programming concepts through his signature "live code" approach. Rather than using code snippets, Deitel presents concepts in the context of complete working Swift programs that run on i OSr 8 and OS Xr. This video is intended for three audiences considering using Swift: Objective-C programmers who are developing new i OS and/or OS X apps and who want to quickly begin using Swift in their apps.

InformIT Learn more
Swift Fundamentals LiveLessons: Part I, Lesson 2: Introduction to Swift Programming, Downloadable Version

Swift Fundamentals LiveLessons: Part I, Lesson 2: Introduction to Swift Programming, Downloadable Version

Lesson Introduction A First Swift Program: Printing a Line of Text Displaying a Single Line of Text with Multiple Statements Displaying Multiple Lines of Text with a Single Statement Composing Larger Strings with String Interpolation--Introducing constants, variables, type inference, type annotations, built-in types, initialization and Identifier naming Addition program--Introducing the arithmetic operators and overflow checking The if Conditional Statement and the Comparative Operators

InformIT Learn more

Get the latest news!