☰
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 List
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
-
LIST FUNCTIONS
Functions used in Lists
Although, we have described all the Functions above. Below is the List.
Function
Description
listOf()
Used to create an immutable list(i.e. A read only List)
mutableListOf()
Used to create a mutable list
get()
Used to to access any element in the List using its index.
subList()
Used to access a chunk of elements from the 'List'.
slice()
Used to access a chunk of elements from the 'List'.
add()
Used to insert a new Item in a List.
addAll()
Used to extend an existing List or join two Lists
remove()
Used to remove an element from the List by its name/value or index.
clear()
Used to remove all the elements from the List.
toList()
Used to copy one List to the other creating a read only list
toMutableList()
Used to copy one List to the other creating a mutable list
sort()
Used to sort a List in Ascending order.
sortDescending()
Used to sort a List in Descending order.
reverse()
Used to reverse a List
❮❮ PREV
NEXT ❯❯