Explore several ways to find the index of an element in a Kotlin array.
Also find me here:
Baeldung Author
baeldung
This is the standard author on the site. Most articles are published by individual authors, with their own profiles, but when multiple people have a strong contribution, we publish collectively here.
Here's what I've written (so far):
Baeldung on Kotlin
- All
- Kotlin Basics (19)
- Kotlin Collections (17)
- Testing (14)
- Kotlin Classes and Objects (14)
- Kotlin (11)
- Kotlin Strings (10)
- Spring (9)
- Kotlin-Java Interop (9)
- Libraries (8)
- Kotlin Concurrency (7)
- Asynchronous Programming (7)
- Kotlin Arrays (6)
- Series (5)
- Kotlin Functions (5)
- Kotlin Server-Side (4)
- Kotlin IO (4)
- Patterns (3)
- Kotlin Web (3)
- Kotlin Numbers (3)
- HTTP Client-Side (3)
- Functional Programming (3)
- Persistence (2)
- Algorithms (2)
- Security (1)
- Kotlin Dates (1)
Kotlin TODO() Function
Filed under Kotlin Basics
Discover how to use the Kotlin TODO() function to mark code that is not yet implemented.
Find the Factorial of a Given Number in Kotlin
Filed under Algorithms
Learn several techniques for computing the factorial of an integer in Kotlin.
Data-Driven Testing With Kotest
Filed under Testing
Learn several strategies for data-driven testing with Kotest.
JUnit 5 vs. Kotest: A Comparison for Unit Testing
Filed under Testing
Explore the differences between Kotest and JUnit 5, along with when to use each technology.
How to Use MockServer in a Kotest Test
Filed under Testing
Learn how to use MockServer in Kotest to verify requests and responses.
How to Run a Function Before Every Test Using Kotest
Filed under Testing
Learn to efficiently test Kotlin applications with Kotest’s lifecycle hooks for running functions before tests.
How to Write a Spring Boot Test Using Kotest
Filed under Testing
Learn how to use Kotest for writing Spring Boot tests in Kotlin.
How to Run Testcontainers Inside a Kotest Test
Filed under Testing
Discover how to use Testcontainers with the Kotest testing framework for Kotlin.