December 2018
Intermediate to advanced
423 pages
4h 23m
English
In programming, a function is nothing but a named section of code – with or without arguments – which performs a specific task and may possibly also return a value. In this chapter, we’ll see how you can get the most out of them in Swift.
I want to define and call a new function from scratch.
What about calling our function?
Even without arguments, we must use parentheses
Read now
Unlock full access