(Swift for Beginners) Swift Nested Functions In this article, you will learn about nested functions in Swift and how it works with examples. If a function exists inside the body of another function, it’s called nested function. Syntax of a nested function func funcname() { //statements of outer function func anotherFuncname() { //statements of inner …
Day: December 8, 2020
(Swift for Beginners) Swift Function Parameters and Return Values In this article, you’ll learn about different user defined functions that takes inputs of different types and returns output, with examples. In the previous article Swift Functions, we learned about functions. Now, we’ll look at the different ways and types we can create a function in …
(Swift for Beginners) Swift Functions In this article, you’ll learn everything about functions, what is a function, syntax, types in Swift with examples. What is a function? A function is a group of statements that defines an action to be performed. The main use of a function is to make the code reusable. Non technically, …
(Swift for Beginners) Swift Dictionary In this tutorial, you will learn about what dictionary is, creating a dictionary and some common operations in dictionary. In the previous Swift Arrays article, we learned how we can store multiple values in a variable/constant. In this article, we are going to discuss how we can store data/values as …