2015
Treehouse
Pasan Premaratne
1:12
English
A function is a fundamental building block of a computer program and allows us to write chunks of code that we can reuse as often as we need. In Swift, functions are quite powerful and in this course, we'll start by taking a look at the syntax and how functions work. Once we have the fundamentals underway, we'll look at how we can customize our parameter names, add default values and return multiple values from a function call.
Functions in Swift 2.0
What is a Function?
Functions in Code
Basic Function Syntax - 1 objective
Parameters
Return Types
Recap: Functions - 3 objectives
Recap: Functions - 5 questions
Function Parameters
Named Parameters
Function Parameters - 2 objectives
Default Values
Returning Complex Values
Function Scope
Returning Complex Values - 1 objective
Download File Size:128.55 MB