I learned to program with Kotlin a few months ago, and I wrote a bunch of code with it. Recently, as I was working on a personal project, I tried something like that :