Programming Kotlin
Familiarize yourself with all of Kotlin’s features with this in-
depth guide
Stephen Samuel
Stefan Bocutiu
BIRMINGHAM - MUMBAI
Programming Kotlin
Copyright © 2017 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or
transmitted in any form or by any means, without the prior written permission of the
publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the
information presented. However, the information contained in this book is sold without
warranty, either express or implied. Neither the authors, nor Packt Publishing, and its
dealers and distributors will be held liable for any damages caused or alleged to be caused
directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
First published: January 2017
Production reference: 1130117
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78712-636-7
www.packtpub.com
Credits
Authors
Stephen Samuel
Stefan Bocutiu
Copy Editor
Safis Editing
Reviewers
Antonios Chalkiopoulos
Alexander Hanschke
Project Coordinator
Vaidehi Sawant
Commissioning Editor
Aaron Lazar
Proofreader
Safis Editing
Acquisition Editor
Kirk D'costa
Sonali Vernekar
Indexer
Tejal Daruwale Soni
Content Development Editor
Nikhil Borkar
Graphics
Abhinash Sahu
Technical Editor
Subhalaxmi Nadar
Production Coordinator
Shraddha Falebhai
About the Authors
Stephen Samuel is an accomplished developer with over 17 years of experience. He has
worked with Java throughout his career, and in the past 5 years has focused on Scala. He
has a passion for concurrency and Big Data technologies. Having spent the last few years in
investment banking, he is currently working with Kotlin on a major Big Data ingestment
project. Stephen is also active in the open source community, being the author of several
high profile Scala and Kotlin libraries.
I would like to thank my wife for being patient with all the days and nights spent on the
computer, developing. I would also like to thank Stefan for kindly agreeing to co-author
this book with me.
Stefan Bocutiu is a Big Data consultant with over 13 years of experience in software
development. He enjoys coding in Scala, C#, and has a passion for stream processing
technologies. With the team at DataMountaineer--a consultancy company offering delivery
of solutions for streaming/ fast data platforms - he focuses on providing scalable, unified,
real-time data pipelines allowing reactive decision making, analytics, and Hadoop
integration.
Stefan is passionate about motorsports, and while his racing skills are not good enough to
allow him to compete, he tries to attend as many MotoGP races as possible. When he is not
coding, he can be found at the climbing wall or at the gym. Occasionally, hiking and
scrambling trips are on his calendar, and during the winter season, skiing trips are a must
for him.