Visibility Modifiers in Kotlin 1. Introduction The Kotlin programming language is built upon the Java Virtual Machine (JVM). As such, it has to follow all of the rules that the JVM imposes – including visibility modifiers. However, there are some subtle nuances in how the language implements these modifiers with… Continue Reading kotlin-visibility-modifiers

Destructuring Declarations in Kotlin 1. Overview In this tutorial, we’ll introduce the concept of Destructuring Declarations in Kotlin, and take a look at how it can be used. If you want to learn more about Kotlin, check out this article. 2. Destructuring Declarations This concept consists of treating objects as… Continue Reading kotlin-destructuring-declarations

Initializing Arrays in Kotlin   1. Overview In this quick tutorial, we’ll look at how we can initialize an array in Kotlin. 2. arrayOf Library Method Kotlin has a built-in arrayOf method which converts the provided enumerated values into an array of the given type: val strings = arrayOf(“January”, “February”, “March”)… Continue Reading kotlin-initialize-array

Lambda Expressions in Kotlin 1. Overview In this article, we’re going to explore Lambdas in the Kotlin language. Keep in mind that lambdas aren’t unique to Kotlin and have been around for many years in many other languages. Lambdas Expressions are essentially anonymous functions that we can treat as values… Continue Reading kotlin-lambda-expressions