This chapter has shown how the power of the advanced Kotlin type system can be used to improve the robustness of our code, and increase re-usability of generic functions. The type system is one of the biggest improvements over Java that Kotlin offers. In later chapters the examples will use type parameterization in the real world, showing how useful it really can be.
Programming Kotlin
Programming Kotlin
Overview of this book
Quickly learn the fundamentals of the Kotlin language and see it in action on the web. Easy to follow and covering the full set of programming features, this book will get you fluent in Kotlin for Android.
Table of Contents (20 chapters)
Programming Kotlin
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface
Free Chapter
Getting Started with Kotlin
Kotlin Basics
Object-Oriented Programming in Kotlin
Functions in Kotlin
Higher Order Functions and Functional Programming
Properties
Null Safety, Reflection, and Annotations
Generics
Data Classes
Collections
Testing in Kotlin
Microservices with Kotlin
Customer Reviews