Monad is a typeclass that has a single function, flatMap, and represents a sequence of executions. Let's use a new feature in Kotlin called multiplatform projects to create a small example.
First, create a standard Android project using Android Studio. Create the android directory and move the app module into it. All modules that relate to Android development will be located here. It's better to create a root build.gradle file with common configurations for all modules.
The structure of your project will look like this:
Gradle is an open source build automation tool that's used by Android Studio by default. The build.gradle file in the ...