Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.0K+ articles
Python
19.6K+ articles
How To
1.2K+ articles
Data Structures
150+ articles
Swift
95+ articles
Swift-Arrays
13+ articles
Swift-Basics
13+ articles
Swift-Set
8+ articles
Swift-Programs
3+ articles
Swift-Functions
26 posts
Recent Articles
Popular Articles
Convert Binary to Decimal in Swift
Last Updated: 24 October 2023
In computers, we use two main number systems: binary (with 0s and 1s) and decimal (with numbers from 0 to 9). Converting binary numbers (like 1010) into decimal numbers (l...
read more
Swift
Data Structures
Swift-Basics
Swift-Programs
Swift-Functions
Escaping and Non-Escaping Closures in Swift
Last Updated: 28 April 2025
In Swift, a closure is a self-contained block of code that can be passed to and called from a function. Closures can be passed as arguments to functions and can be stored ...
read more
Picked
Swift
Swift-Functions
Closures in Swift
Last Updated: 28 April 2025
In Swift, Closures are known as self-contained blocks of functionality that can be passed around and used inside your code. They are quite similar to blocks in C and Objec...
read more
Picked
Swift
Swift-Functions
String Functions and Operators in Swift
Last Updated: 28 April 2025
A string is a sequence of characters that is either composed of a literal constant or the same kind of variable. For eg., "Hello World" is a string of characters. In Swift...
read more
Picked
Swift
Swift-Functions
Swift-Strings
Calling Functions in Swift
Last Updated: 28 April 2025
Functions are independent lumps of code that play out a particular undertaking. You can give a name to the function that recognizes what it does, and also the name is util...
read more
Picked
Swift
Swift-Functions
Higher-Order Functions in Swift
Last Updated: 28 April 2025
Higher-order functions are functions that take other functions as arguments or return functions as their output. These functions are an important aspect of functional prog...
read more
Technical Scripter
Swift
Technical Scripter 2022
Swift-Functions
How to Insert a Character in String at Specific Index in Swift?
Last Updated: 05 July 2022
Swift language supports different types of generic collections and a string is one of them. A string is a collection of alphabets. In the Swift string, we will insert a ne...
read more
How To
Swift
Swift-Functions
How to Append a String to Another String in Swift?
Last Updated: 05 July 2022
Swift language supports different types of generic collections and a string is one of them. A string is a collection of alphabets. In the Swift string, we add a string val...
read more
How To
Swift
Swift-Functions
How to remove a specific character from a string in Swift?
Last Updated: 05 July 2022
Swift language supports different types of generic collections and a string is one of them. A string is a collection of alphabets. In the Swift string, we check the remova...
read more
How To
Swift
Swift-Functions
How to check if a string contains another string in Swift?
Last Updated: 05 July 2022
The Swift language supports different types of generic collections and a string is one of them. A string is a collection of alphabets. In the Swift string, we check if the...
read more
How To
Swift
Swift-Functions
How to check if the array contains a given element in Swift?
Last Updated: 02 June 2022
The Swift language supports different types of generic collections and an array is one of them. An array is an ordered collection that is used to keep the same type of dat...
read more
Swift
Swift-Arrays
Swift-Functions
How to shuffle the elements of a set in Swift?
Last Updated: 02 June 2022
A set is an unordered generic collection that is used to store elements of the same type. It means you are not allowed to keep different types in the set. You can use a se...
read more
Swift
Swift-Set
Swift-Functions
How to remove all the elements from the Set in Swift?
Last Updated: 02 June 2022
A set is a generic unordered collection that is used to store values of the same type. It means you are not allowed to keep different types in the set or we can say that a...
read more
Swift
Swift-Set
Swift-Functions
How to remove first element from the Set in Swift?
Last Updated: 02 June 2022
In Swift, a set is a generic collection that is used to store unordered values of the same type. It means you are not allowed to keep different types in the set or we can ...
read more
Swift
Swift-Set
Swift-Functions
How to count the elements of a Set in Swift?
Last Updated: 02 June 2022
Swift supports the different types of generic collections and set is one of them. A set is used to store unordered values of the same type. It means you are not allowed to...
read more
Swift
Swift-Set
Swift-Functions
1
2
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !