Published on November 16, 2016 by Treehouse

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.

Join Treehouse today and start your free trial!

Learn how to build websites and apps, write code, or start a business at Treehouse. Learn from over 1,000 videos created by our expert teachers on web design, coding, business, and much more. Treehouse teaches the in-demand technology skills you need to land your dream job.

Leave a Reply

2 Comments on "Learn Swift 3.0 Functions at Treehouse"

Notify of

aftab khattak
aftab khattak
1 year 5 months ago

dear sir,i watched your magnificent skills in your videos and i am very impressed and incredibly happy to to get benefit from these.I want to join this trail free of cost because i can't afford at all so,please there are any opportunity for me to fulfill my dreams.i will be very thankful to u.

CupOf SleepyTimeTea
CupOf SleepyTimeTea
1 year 6 months ago

Is it even necessary to create a whole new version of the Swift Functions course for every major release of Swift. Wouldn't it be better to cover the language update in a single course or set of workshops?