A quick tutorial on dealing with the warning for expressions that can have the return lifted in Kotlin.
Also find me here:
Baeldung Author
Ewane Enombe
I'm an experienced software engineer with over 7 years of experience in the field. I specialize in cloud services, Android app development using Java and Kotlin, as well as Django with Python. One of my passions is technical documentation, and I'm always looking for ways to improve my skills in this area. I love helping people get better technically and I feel fulfilled knowing that I can make a positive impact on someone's career. In my free time, I enjoy playing chess. It's a great way to unwind and exercise my mind. I find that playing chess helps me to stay sharp and focused, which translates to better productivity when I'm back at work. Overall, I'm proud of the work I've done as a software engineer and I'm excited to continue growing and learning in this field.
Here's what I've written (so far):
Baeldung on Kotlin
- All
- Kotlin Strings (11)
- Kotlin Collections (11)
- Patterns (4)
- Kotlin Basics (3)
- Algorithms (3)
- Libraries (2)
- Kotlin-Java Interop (2)
- Kotlin Numbers (2)
- Kotlin Classes and Objects (2)
- Kotlin Arrays (2)
- Testing (1)
- Kotlin IO (1)
- Kotlin Functions (1)
- Kotlin Dates (1)
- Kotlin (1)
Getting a Kotlin KClass from a Package Class Name String
Filed under Kotlin Basics
A quick tutorial on getting a KClass from a fully qualified class name string in Kotlin.
Iterating All Fields of a Data Class Without Reflection in Kotlin
Filed under Kotlin Classes and Objects
A quick tutorial on iterating the fields of a Kotlin data class without reflection.
The Composite Pattern in Kotlin
Filed under Patterns
A quick tutorial on implementing the composite design pattern in Kotlin.
In Place Modification of Map Entry in Kotlin
Filed under Kotlin Collections
A quick tutorial on in-place modification of maps in Kotlin.
Check if an Enum Value Contains a Given String in Kotlin
Filed under Kotlin Basics
A quick tutorial on checking if a given string matches an enum value in Kotlin.
Convert String to Char in Kotlin
Filed under Kotlin Strings
A quick tutorial on converting strings to characters in Kotlin.
Creating a Map from Two Arrays in Kotlin
Filed under Kotlin Arrays, Kotlin Collections
A quick tutorial on converting two arrays into a map in Kotlin.
Counting Occurrences of a Value in a List in Kotlin
Filed under Kotlin Collections
A quick tutorial on counting the number of times an item appears in a list in Kotlin.