
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Functional Kotlin
About this book
Learn how to apply Functional Programming with Kotlin to real-life projects with popular libraries like Arrow.
Key Features
- Focus on the functional aspects of Kotlin and identify the advantages that functional programming brings to the table and the associated coding benefits.
- Implement common functional programming design patterns and techniques.
- Learn to combine OOP and Reactive Programming with Functional Programming and how RxKotlin and funkTionale can help you implementing Functional Programming in Kotlin
Book Description
Functional programming makes your application faster, improves performance, and increases your productivity. Kotlin supports many of the popular and advanced functional features of functional languages. This book will cover the A-Z of functional programming in Kotlin. This book bridges the language gap for Kotlin developers by showing you how to create and consume functional constructs in Kotlin. We also bridge the domain gap by showing how functional constructs can be applied in business scenarios. We'll take you through lambdas, pattern matching, immutability, and help you develop a deep understanding of the concepts and practices of functional programming. If you want learn to address problems using Recursion, Koltin has support for it as well. You'll also learn how to use the funKtionale library to perform currying and lazy programming and more. Finally, you'll learn functional design patterns and techniques that will make you a better programmer.By the end of the book, you will be more confident in your functional programming skills and will be able to apply them while programming in Kotlin.
What you will learn
- Learn the Concepts of Functional Programming with Kotlin
- Discover the Coroutines in Kotlin
- Uncover Using funkTionale plugin
- Learn Monads, Functiors and Applicatives
- Combine Functional Programming with OOP and Reactive Programming
- Uncover Using Monads with funkTionale
- Discover Stream Processing
Who this book is for
Kotlin developers who have no functional programming experience, will benefit from this book.
Tools to learn more effectively

Saving Books

Keyword Search

Annotating Text

Listen to it instead
Information
Asynchronous Programming with Coroutines
- Coroutines
- Alternative approaches
- Asynchronous processing
- Channels and actors
Introduction to coroutines
import kotlin.concurrent.thread
fun main(args: Array<String>) {
thread {
Thread.sleep(1000)
println("World!")
}
print("Hello ")
Thread.sleep(2000)
}
fun main(args: Array<String>) {
val computation = thread {
Thread.sleep(1000)
println("World!")
}
print("Hello ")
computation.join()
}
Understanding JVM threads
Table of contents
- Title Page
- Copyright and Credits
- Dedication
- Packt Upsell
- Contributors
- Preface
- Kotlin – Data Types, Objects, and Classes
- Getting Started with Functional Programming
- Immutability - It's Important
- Functions, Function Types, and Side Effects
- More on Functions
- Delegates in Kotlin
- Asynchronous Programming with Coroutines
- Collections and Data Operations in Kotlin
- Functional Programming and Reactive Programming
- Functors, Applicatives, and Monads
- Working with Streams in Kotlin
- Getting Started with Arrow
- Arrow Types
- Kotlin's Quick Start
- Other Books You May Enjoy
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app