Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Title Page
Copyright and Credits
Kotlin Standard Library Cookbook
Dedication
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Conventions used
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Get in touch
Reviews
Ranges, Progressions, and Sequences
Introduction
Exploring the 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 statements
Getting 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...
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 ready
How to do it...
How it works...
Overloading operators
Getting ready
How to do it...
How it works...
There's more...
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 functions
How to do it...
How it works...
Functions currying
Getting ready
How to do it...
How it works...
There's more...
Function composition
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...
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
Filtering datasets
Getting ready
How to do it...
How it works...
There's more...
See also
Automatic null removal
How to do it...
How it works...
See also
Sorting data with custom comparators
Getting started
How to do it...
How it works...
There's more...
Building strings based on dataset elements
How to do it...
How it works...
There's more...
See also
Dividing data into subsets
Getting ready
How to do it...
How it works...
There's more...
See also
Data transformation with map and flatMap
How to do it...
How it works...
There's more...
Folding and reducing data sets
How to do it...
How it works...
There's more...
Grouping data
How to do it...
How it works...
There's more...
See also
Tasteful Design Patterns Adopting Kotlin Concepts
Introduction
Implementing the Strategy pattern
How to do it...
How it works...
There's more...
See also
Exploring the power of the Delegation pattern
Getting ready
How to do it...
How it works...
See also
Implementing delegated class properties
Getting ready
How to do it...
How it works...
There's more...
See also
Tracking state with the Observer pattern
How to do it...
How it works...
See also
Restricting property updates with the Vetoable delegate
How to do it...
How it works...
See also
Implementing the advanced Observer pattern by defining a custom property delegate
How to do it...
How it works...
See also
Working with the Lazy delegate
How to do it...
How it works...
See also
Implementing builders the smart way
Getting ready
How to do it...
How it works...
There's more...
See also
Friendly I/O Operations
Introduction
Reading the contents of a file
Getting ready
How to do it...
How it works...
See also
Ensuring stream closing with the use function
Getting ready
How to do it...
How it works...
Reading the contents of a file line by line
Getting ready
How to do it...
How it works...
See also
Writing the contents to a file
How to do it...
How it works...
See also
Appending a file
How to do it...
How it works...
Easy file copying
Getting ready
How to do it...
How it works...
Traversing files in a directory
Getting ready
How to do it...
How it works...
Making Asynchronous Programming Great Again
Introduction
Executing tasks in the background using threads
Getting ready
How to do it...
How it works...
See also
Background threads synchronization
Getting ready
How to do it...
How it works...
See also
Using coroutines for asynchronous, concurrent execution of tasks
Getting ready
How to do it...
How it works...
See also
Using coroutines for asynchronous, concurrent tasks execution with results handling
Getting ready
How to do it...
How it works...
There's more...
See also
Applying coroutines for asynchronous data processing
How to do it...
How it works...
See also
Easy coroutine cancelation
Getting ready
How to do it...
How it works...
See also
Building a REST API client with Retrofit and a coroutines adapter
Getting ready
How to do it...
How it works...
See also
Wrapping third-party callback-style APIs with coroutines
Getting ready
How to do it...
How it works...
See also
Best Practices for the Android, JUnit, and JVM UI Frameworks
Introduction
Clean and safe view-binding with the Android Extensions plugin
Getting ready
How to do it...
How it works...
There's more...
Applying coroutines for asynchronous UI programming on Android, JavaFX, and Swing
Getting ready
How to do it...
How it works...
There's more...
See also
Easy class serialization on Android using the @Parcelize annotation
Getting ready
How to do it...
How it works...
See also
Implementing a custom property delegate that provides lifecycle-aware values
Getting ready
How to do it...
How it works...
See also
Easy operations on SharedPreferences
Getting ready
How to do it...
How it works...
See also
Less boilerplate Cursor data parsing
Getting ready
How to do it...
How it works...
Mocking dependencies with the Mockito Kotlin library
Getting ready
How to do it...
How it works...
See also
Verifying function invocations
Getting ready
How to do it...
How it works...
Unit tests for Kotlin coroutines
Getting ready
How to do it...
How it works...
Miscellaneous
Introduction
Kotlin and Java interoperability
How to do it...
How it works...
Kotlin and JavaScript interoperability
Getting ready
How to do it...
How it works...
There's more...
Renaming generated functions
How to do it...
How it works...
There's more...
See also
Decompiling Kotlin code to Java and JVM bytecode
Getting ready
How to do it...
How it works...
Adding custom names for imports
How to do it...
How it works...
Wrapping complex type declarations with type aliases
Getting ready
How to do it...
How it works...
Expressive try…catch declarations
Getting ready
How to do it...
How it works...
There's more...
Safe type-casting
How to do it...
How it works...
Other Books You May Enjoy
Leave a review - let other readers know what you think
← Prev
Back
Next →
← Prev
Back
Next →