☰
Kotlin Tutorial
Kotlin - Basic
Kotlin - Installation
Kotlin - Variables
Kotlin - Data Types
Kotlin - Val
Kotlin - Type Casting
Kotlin - Operators
Kotlin - Input & Output
BRANCHING
Kotlin - If - Else
Kotlin - When
LOOPS
Kotlin - While Loop
Kotlin - Do - While Loop
Kotlin - For Loop
Kotlin - Break
Kotlin - Continue
DATA TYPES
Kotlin - Numbers
Kotlin - Boolean
Kotlin - Strings
Kotlin - String Functions
ARRAY
Kotlin - Arrays
Kotlin - arrayOf() Function
Kotlin - Iterating Array
Kotlin - Replace Array Elements
Kotlin - Sort Array Elements
LIST
Kotlin - Lists
Kotlin - Accessing List
Kotlin - Replace List Elements
Kotlin - Insert in List
Kotlin - Join two Lists
Kotlin - Remove from List
Kotlin - Copy from List
Kotlin- Sort List Elements
Kotlin - Reverse a List
Kotlin - List Functions
SET
Kotlin - Set
Kotlin - Iterating Set
Kotlin - Accessing Set
Kotlin - Insert in Set
Kotlin - Join two Sets
Kotlin - Remove from Set
Kotlin - Copy from Set
Kotlin- Sort Set Elements
Kotlin - Reverse a Set
Kotlin - Set Functions
MAP
Kotlin - Map
Kotlin - Iterating Map
Kotlin - Insert in Map
Kotlin - Update Map
Kotlin - Remove from Map
Kotlin - Copy from Map
Kotlin - HashMap
Kotlin - Map Functions
FUNCTION
Kotlin - Function
Kotlin - Function Arguments
Kotlin - Function Overloading
Kotlin - Recursion
Kotlin - Lambda/Anonymous Function
Kotlin - Scope
Kotlin - Import
OOPS
Kotlin - OOPS
Kotlin - Classes & Objects
Kotlin - Constructors
Kotlin - Inheritance
Kotlin - Method Overriding
Kotlin - Abstract Class
Kotlin - Interface
Kotlin - Data Class
Kotlin - Sealed Class
EXCEPTION
Kotlin - Exception Handling
Kotlin - Custom Exception
DATE TIME
Kotlin - Date & Time
REGEX
Kotlin - Regex
Regex - Functions
Regex - Meta-Characters
Regex - Special Sequences
ADVANCED
Kotlin - Operator Overloading
JAVA
SPRING
SPRINGBOOT
HIBERNATE
HADOOP
HIVE
ALGORITHMS
PYTHON
GO
KOTLIN
C#
RUBY
C++
OTHERS
JAVA
SPRING
SPRINGBOOT
HIBERNATE
HADOOP
HIVE
ALGORITHMS
PYTHON
GO
KOTLIN
C#
RUBY
C++
Kotlin Tutorial
Kotlin - Basic
Kotlin - Installation
Kotlin - Variables
Kotlin - Data Types
Kotlin - Val
Kotlin - Type Casting
Kotlin - Operators
Kotlin - Input & Output
BRANCHING
Kotlin - If - Else
Kotlin - When
LOOPS
Kotlin - While Loop
Kotlin - Do - While Loop
Kotlin - For Loop
Kotlin - Break
Kotlin - Continue
DATA TYPES
Kotlin - Numbers
Kotlin - Boolean
Kotlin - Strings
Kotlin - String Functions
ARRAY
Kotlin - Arrays
Kotlin - arrayOf() Function
Kotlin - Iterating Array
Kotlin - Replace Array Elements
Kotlin - Sort Array Elements
LIST
Kotlin - Lists
Kotlin - Accessing List
Kotlin - Replace List Elements
Kotlin - Insert in List
Kotlin - Join two Lists
Kotlin - Remove from List
Kotlin - Copy from List
Kotlin- Sort List Elements
Kotlin - Reverse a List
Kotlin - List Functions
SET
Kotlin - Set
Kotlin - Iterating Set
Kotlin - Accessing Set
Kotlin - Insert in Set
Kotlin - Join two Sets
Kotlin - Remove from Set
Kotlin - Copy from Set
Kotlin- Sort Set Elements
Kotlin - Reverse a Set
Kotlin - Set Functions
MAP
Kotlin - Map
Kotlin - Iterating Map
Kotlin - Insert in Map
Kotlin - Update Map
Kotlin - Remove from Map
Kotlin - Update Map
Kotlin - Remove from Map
Kotlin - Copy from Map
Kotlin - HashMap
Kotlin - Map Functions
FUNCTION
Kotlin - Function
Kotlin - Function Arguments
Kotlin - Function Overloading
Kotlin - Recursion
Kotlin - Lambda/Anonymous Function
Kotlin - Scope
Kotlin - Import
OOPS
Kotlin - OOPS
Kotlin - Classes & Objects
Kotlin - Constructors
Kotlin - Inheritance
Kotlin - Method Overriding
Kotlin - Abstract Class
Kotlin - Interface
Kotlin - Data Class
Kotlin - Sealed Class
EXCEPTION
Kotlin - Exception Handling
Kotlin - Custom Exception
DATE TIME
Kotlin - Date & Time
REGEX
Kotlin - Regex
Regex - Functions
Regex - Meta-Characters
Regex - Special Sequences
ADVANCED
Kotlin - Operator Overloading
❮❮ PREV
NEXT ❯❯
KOTLIN
-
SET FUNCTIONS
Functions used in Sets
Although
, we have described all the
Functions above
.
Below is the Set
.
Function
Description
setOf()
Used to create an immutable set(i.e. A read only Set)
mutableSetOf()
Used to create a mutable set
elementAt()
Used to find the element at a particular index.
first()
Used to find the first element.
last()
Used to find the last element.
add()
Used to insert a new Item in a Set.
addAll()
Used to extend an existing Set or join two Sets
remove()
Used to remove an element from the Set by its name/value or index.
clear()
Used to remove all the elements from the Set.
toSet()
Used to copy one Set to the other creating a read only set
toMutableSet()
Used to copy one Set to the other creating a mutable set
sorted()
Used to sort a Set in Ascending order.
sortedDescending()
Used to sort a Set in Descending order.
reversed()
Used to reverse a Set
❮❮ PREV
NEXT ❯❯