# Kotlin tips Kotlin Tips is a series of short videos where members of the Kotlin team show how to use Kotlin in a more efficient and idiomatic way to have more fun when writing code. [Subscribe to our YouTube channel](https://www.youtube.com/channel/UCP7uiEZIqci43m22KDl0sNw) to not miss new Kotlin Tips videos. ## null + null in Kotlin What happens when you add `null + null` in Kotlin, and what does it return? Sebastian Aigner addresses this mystery in our latest quick tip. Along the way, he also shows why there's no reason to be scared of nullables: [Video: Kotlin Tips: null + null in Kotlin](https://www.youtube.com/v/wwplVknTza4) ## Deduplicating collection items Got a Kotlin collection that contains duplicates? Need a collection with only unique items? Let Sebastian Aigner show you how to remove duplicates from your lists, or turn them into sets in this Kotlin tip: [Video: Kotlin Tips: Deduplicating Collection Items](https://www.youtube.com/v/ECOf0PeSANw) ## The suspend and inline mystery How come functions like [repeat()](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/repeat.html), [map()](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/map.html) and [filter()](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/filter.html) accept suspending functions in their lambdas, even though their signatures aren't coroutines-aware? In this episode of Kotlin Tips, Sebastian Aigner solves the riddle: it has something to do with the inline modifier: [Video: Kotlin Tips: The Suspend and Inline Mystery](https://www.youtube.com/v/R2395u7SdcI) ## Unshadowing declarations with their fully qualified name Shadowing means having two declarations in a scope have the same name. So, how do you pick? In this episode of Kotlin Tips, Sebastian Aigner shows you a simple Kotlin trick to call exactly the function that you need, using the power of fully qualified names: [Video: Kotlin Tips: Unshadowing Declarations](https://www.youtube.com/v/mJRzF9WtCpU) ## Return and throw with the Elvis operator [Elvis](null-safety.html#elvis-operator) has entered the building once more! Sebastian Aigner explains why the operator is named after the famous singer, and how you can use `?:` in Kotlin to return or throw. The magic behind the scenes? [The Nothing type](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-nothing.html). [Video: Kotlin Tips: Return and Throw with the Elvis Operator](https://www.youtube.com/v/L8aFK7QrbA8) ## Destructuring declarations With [destructuring declarations](destructuring-declarations.html) in Kotlin, you can create multiple variables from a single object, all at once. In this video, Sebastian Aigner shows you a selection of things that can be destructured – pairs, lists, maps, and more. And what about your own objects? Kotlin's component functions provide an answer for those as well: [Video: Kotlin Tips: Destructuring Declarations](https://www.youtube.com/v/zu1PUAvk_Lw) ## Operator functions with nullable values In Kotlin, you can override operators like addition and subtraction for your classes and supply your own logic. But what if you want to allow null values, both on their left and right sides? In this video, Sebastian Aigner answers this question: [Video: Kotlin Tips: Operator Functions With Nullable Values](https://www.youtube.com/v/x2bZJv8i0vw) ## Timing code Watch Sebastian Aigner give a quick overview of the [measureTimedValue()](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.time/measure-timed-value.html) function, and learn how you can time your code: [Video: Kotlin Tips: Timing Code](https://www.youtube.com/v/j_LEcry7Pms) ## Improving loops In this video, Sebastian Aigner will demonstrate how to improve [loops](control-flow.html#for-loops) to make your code more readable, understandable, and concise: [Video: Kotlin Tips: Improving Loops](https://www.youtube.com/v/i-kyPp1qFBA) ## Strings In this episode, Kate Petrova shows three tips to help you work with [Strings](strings.html) in Kotlin: [Video: Kotlin Tips: Strings](https://www.youtube.com/v/IL3RLKvWJF4) ## Doing more with the Elvis operator In this video, Sebastian Aigner will show how to add more logic to the [Elvis operator](null-safety.html#elvis-operator), such as logging to the right part of the operator: [Video: Kotlin Tips: The Elvis Operator](https://www.youtube.com/v/L9wqYQ-fXaM) ## Kotlin collections In this episode, Kate Petrova shows three tips to help you work with [Kotlin Collections](collections-overview.html): [Video: Kotlin Tips: Kotlin Collections](https://www.youtube.com/v/ApXbm1T_eI4) ## What's next? * See the complete list of Kotlin Tips in our [YouTube playlist](https://youtube.com/playlist?list=PLlFc5cFwUnmyDrc-mwwAL9cYFkSHoHHz7) * Learn how to write [idiomatic Kotlin code for popular cases](idioms.html)