Kotlin standard library cookbook : master the powerful Kotlin standard library through practical code examples /
This book explores the valuable standard libraries, showing you how to use them to write succinct code. Filled with short and easy-to -follow solutions, you'll see how to get optimal performance from your Kotlin code.
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Publishing,
2018.
|
Temas: | |
Acceso en línea: | Texto completo Texto completo |
Tabla de Contenidos:
- Cover; Title Page; Copyright and Credits; Dedication; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: Ranges, Progressions, and Sequences; Introduction; Exploringthe use of range expressions to iterate through alphabet characters; Getting ready; How to do it ... ; How it works ... ; There's more ... ; See also; Traversing through ranges using progression with a custom step value; Getting ready; How to do it ... ; How it works ... ; See also; Building custom progressions to traverse dates; Getting ready; How to do it ... ; How it works ...
- Using range expressions with flow control statementsGetting ready; How to do it ... ; How it works ... ; There's more ... ; See also; Discovering the concept of sequences; Getting ready; How to do it ... ; How it works ... ; There's more ... ; See also; Applying sequences to solve algorithmic problems; Getting ready; How to do it ... ; How it works ... ; Chapter 2: Expressive Functions and Adjustable Interfaces; Introduction; Declaring adjustable functions with default parameters; How to do it ... ; How it works ... ; See also; Declaring interfaces containing default implementations; Getting ready
- How to do it ... How it works ... ; There's more ... ; See also; Extending functionalities of classes; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Destructuring types; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Returning multiple data; How to do it ... ; How it works ... ; There's more ... ; See also; Inlining parameters of closure type; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Infix notations for functions; Getting ready; How to do it ... ; How it works ... ; There's more ... ; See also; Smart types checking with generic reified parameters
- Getting readyHow to do it ... ; How it works ... ; Overloading operators; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Chapter 3: Shaping Code with Kotlin Functional Programming Features; Introduction; Working effectively with lambda expressions; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Discovering basic scoping functions -let, also, apply; Getting ready; How to do it ... ; How it works ... ; See also; Initializing objects the clean way using the run scoping function; Getting ready; How to do it ... ; How it works ... ; There's more ... ; See also
- Working with higher-order functionsHow to do it ... ; How it works ... ; Functions currying; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Functioncomposition; Getting ready; How to do it ... ; How it works ... ; Implementing the Either Monad design pattern; How to do it ... ; How it works ... ; There's more ... ; Approach to automatic functions memoization; How to do it ... ; How it works ... ; There's more ... ; Chapter 4: Powerful Data Processing; Introduction; Composing and consuming collections the easy way; Getting ready; How to do it ... ; How it works ... ; There's more ... ; See also