MASTERING SWIFT - Functions

Опубликовано: 11 Март 2026
на канале: Programmer Ship
63
5

Hi there ...
This is the twelfth chapter of Mastering Swift Tutorial series. In this chapter we are gonna learn function. Function is a block of code that performs a specific task. We can give a name to that block of code and use it in our project. Function provides reusability. That means we can use the same function in our code more than once. We can also define some parameters in other words arguments in the function. And we can use these parameters in our function. Function also allows us to return back a value to where it is called.

00:08 What is function ?
00:40 How to define function ?
01:30 How to add parameter into function ?
03:10 How to return value from a function ?
03:50 How to define default value for a parameter ?
05:21 How to return array from a function ?
06:44 How to return tuple from a function?
08:40 How to return optional type from a function ?
12:22 What is inout parameter ?
12:53 How to use inout parameter ?

You are gonna see lot of things about programming in a simplified tutorials.
What do you waiting for to be a member of this ship.
You can support this ship by subscribing : -    / @programmership  

#swift
#function
#ios