Part 1Scripting with Kotlin
Kotlin is a language that scales—you can create scripts with a few lines, or an entire enterprise application with many classes and libraries. Our objective is to deliver value, not to write a lot of code. From that point of view, the conciseness and effectiveness of every line of code matters.
In this part, you’ll learn about type inference, defining variables, using string templates, and creating multiline strings. Then we’ll look at how to create functions to elegantly iterate over ranges of values and to process data using the argument-matching capabilities of Kotlin.
You’ll learn to create scripts, but that knowledge will carry you forward to creating OO code, writing functional code...all the way to creating ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access