Functions and Closures in Swift
3.6 (19 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
221 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Functions and Closures in Swift to your Wishlist.

Add to Wishlist

Functions and Closures in Swift

Learn how to use functions and closures in Swift, Apple's new programming language for building iOS and Mac OSX apps.
3.6 (19 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
221 students enrolled
Created by Amin Meyghani
Last updated 5/2016
English
Learn Fest Sale
Current price: $10 Original price: $20 Discount: 50% off
2 hours left at this price!
30-Day Money-Back Guarantee
Includes:
  • 2 hours on-demand video
  • 1 Article
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Become familiar with functional features in Swift
  • Write more declarative and eloquent code
  • Become very comfortable with functions and closures in Swift
  • Create your own module or framework with some utility functions
View Curriculum
Requirements
  • Fundamental knowledge of programming basics
  • Basic knowledge of the Swift language
  • Apple Developer Account for compiling codes before Apple releases XCode officially
Description

This course focuses on the functional features of the Swift programming language. Concepts like closures, value capturing, higher order functions and closure inline expressions, among many more are covered through simple examples.

This course is relatively short but focused to give you a better understanding of functions and closures in Swift since they are as important as objects and classes.

Who is the target audience?
  • Beginners who know the basics of Swift
  • Beginners who want to be very good at functions and closures
  • Intermediate developers who may need a refresher on functional concepts
  • Intermediate developers who may want to make a custom framework for their utility functions
Students Who Viewed This Course Also Viewed
Curriculum For This Course
Expand All 34 Lectures Collapse All 34 Lectures 01:45:54
+
Welcome
1 Lecture 01:25

Disclaimer

The Swift language is still under development and the features explored in these videos might or might not change in the next releases of this language. It is your responsibility to check out the documentation for relevant information and feature changes.

Preview 01:25
+
Functions Basics
1 Lecture 07:01
Intro to Functoins
07:01

Test your understanding of the basics of functions in Swift

Functions Basics Quiz
4 questions
+
Function Input Parameters
6 Lectures 20:48
External Parameter Names
03:00

Variable Parameters
03:19

Variadic Parameters
03:27

Default Parameters
04:13

In-out Parameters
01:50


Test your understanding of function input parameters

Function Inputs
12 questions
+
Function Return Values
4 Lectures 14:04
Returning Multiple Values
02:09

Functions as Return Values
03:57

Curried Functions
05:02

+
Closures
4 Lectures 16:03

Passing Closures to Functions
03:32

Returning Closures from Functions
03:03

Arrays and Closures
01:36
+
Arrays and Closures
9 Lectures 23:19
Map
01:54

Map Exercise
01:46

Filter
03:06

Filter Exercise
02:14

Sort
02:18

Sort Exercise
01:45

Reduce
02:43

Reduce Exercise
03:06

+
Extensions and Generics
2 Lectures 07:10
Extensions
03:12

Generics
03:58
+
Creating a Basic Utility Module (Framework)
6 Lectures 15:34

first
03:15

indexOf
02:16

contains
02:42

forEach
01:30

Packaging and Importing the Module
03:05
+
Bonus Materials
1 Lecture 00:34
Get My 2 Other Courses At A Steep Discount
00:34
About the Instructor
Amin Meyghani
3.8 Average rating
167 Reviews
8,843 Students
3 Courses
JavaScript Engineer

My name is Amin and I'm a JavaScript Engineer. I have worked on a variety of projects ranging from implementing user interfaces, to making productivity tools for engineers and designers. I am also very passionate about education and enjoy sharing what I learn with the world.

I am also the co-author of the Less Web Development Cookbook published by Packt Publishing. The book is about working with LESS on the client to make apps more maintainable.

I have been a self-taught learner as long as I can remember and I really enjoy sharing my findings and learnings with the world through any medium that I can. If you have any questions regarding any of my courses, you can reach me at amin@meyghani.net