+ 1

Can I get some help with swift functions? I find them really confusing

I recently started learning swift but I cant figure out how functions work.

29th Sep 2022, 1:27 AM
Avry Da Cool 1
 Avry Da Cool 1 - avatar
4 Answers
+ 2
Explain what exactly you do not understand and give an example.
29th Sep 2022, 2:23 AM
Solo
Solo - avatar
+ 1
Yes, everything is very simple, it's like when declaring a variable, you set the type of the return variable of the function.
29th Sep 2022, 10:27 PM
Solo
Solo - avatar
0
I dont understand anything after the ->.
29th Sep 2022, 9:27 PM
Avry Da Cool 1
 Avry Da Cool 1 - avatar
0
Thanks
30th Sep 2022, 12:39 AM
Avry Da Cool 1
 Avry Da Cool 1 - avatar