Functional Kotlin (The Course)
$25.00
Minimum price
$35.00
Suggested price

This Course is part of the following Tracks:

Course Material

  • Notes about the course
  • Project with exercises
  • icon/quiz Created with Sketch.
    Quiz 13 attempts allowed
  • Introduction to functional programming with Kotlin
  • Why do we need to use functions as objects?
  • Function types
  • Function types
  • Defining function types
  • Using function types
  • Named parameters
  • Type aliases
  • A function type is an interface
  • icon/quiz Created with Sketch.
    Quiz 23 attempts allowed
  • Anonymous functions
  • Anonymous functions
  • icon/quiz Created with Sketch.
    Quiz 33 attempts allowed
  • Lambda expressions
  • Lambda expressions
  • Tricky braces
  • Parameters
  • Trailing lambdas
  • Result values
  • Lambda expression examples
  • An implicit name for a single parameter
  • Closures
  • Lambda expressions vs anonymous functions
  • icon/quiz Created with Sketch.
    Quiz 43 attempts allowed
  • Exercise: Function types and literals
  • Function references
  • Function references
  • Top-level functions references
  • Method references
  • Extension function references
  • Method references and generic types
  • Bounded function references
  • Constructor references
  • Bounded object declaration references
  • Function overloading and references
  • Property references
  • icon/quiz Created with Sketch.
    Quiz 53 attempts allowed
  • Exercise: Inferred function types
  • Exercise: Function types and literals
  • SAM Interface support in Kotlin
  • SAM Interface support in Kotlin
  • Support for Java SAM interfaces in Kotlin
  • Functional interfaces
  • icon/quiz Created with Sketch.
    Quiz 63 attempts allowed
  • Inline functions
  • Inline functions
  • Inline functions
  • Inline functions with functional parameters
  • Non-local return
  • Crossinline and noinline
  • Reified type parameters
  • Inline properties
  • Costs of the inline modifier
  • Using inline functions
  • icon/quiz Created with Sketch.
    Quiz 73 attempts allowed
  • Exercise: Inline functions
  • Collection processing
  • Collection processing
  • forEach and onEach
  • filter
  • map
  • mapNotNull
  • flatMap
  • icon/quiz Created with Sketch.
    Quiz 83 attempts allowed
  • Exercise: Optimize collection processing
  • fold
  • reduce
  • sum
  • icon/quiz Created with Sketch.
    Quiz 93 attempts allowed
  • withIndex and indexed variants
  • icon/quiz Created with Sketch.
    Quiz 103 attempts allowed
  • take, takeLast, drop, dropLast and subList
  • icon/quiz Created with Sketch.
    Quiz 113 attempts allowed
  • Exercise: Adding element at position
  • Getting elements at certain positions
  • Finding an element
  • Counting elements
  • any, all and none
  • icon/quiz Created with Sketch.
    Quiz 123 attempts allowed
  • Exercise: Implement shop functions (hard)
  • partition
  • groupBy
  • icon/quiz Created with Sketch.
    Quiz 133 attempts allowed
  • Associating to a map
  • distinct and distinctBy
  • icon/quiz Created with Sketch.
    Quiz 143 attempts allowed
  • Exercise: Prime access list
  • Sorting: sorted, sortedBy and sortedWith
  • Sorting mutable collections
  • Maximum and minimum
  • shuffled and random
  • icon/quiz Created with Sketch.
    Quiz 153 attempts allowed
  • Exercise: Refactor collection processing
  • zip and zipWithNext
  • Windowing
  • icon/quiz Created with Sketch.
    Quiz 163 attempts allowed
  • joinToString
  • Map, Set and String processing
  • icon/quiz Created with Sketch.
    Quiz 173 attempts allowed
  • Exercise: Passing students list
  • Exercise: Best students list (hard)
  • Sequences
  • Sequences
  • What is a sequence?
  • Order is important
  • Sequences do the minimum number of operations
  • Sequences can be infinite
  • Sequences do not create collections at every processing step
  • When aren’t sequences faster?
  • What about Java streams?
  • Kotlin Sequence debugging
  • Summary
  • icon/quiz Created with Sketch.
    Quiz 183 attempts allowed
  • Exercise: Understanding sequences
  • Type Safe DSL Builders
  • Type Safe DSL Builders
  • A function type with a receiver
  • Simple DSL builders
  • Using apply
  • Simple DSL-like builders
  • Multi-level DSLs
  • DslMarker
  • A more complex example
  • When should we use DSLs?
  • Summary
  • icon/quiz Created with Sketch.
    Quiz 193 attempts allowed
  • Exercise: HTML table DSL
  • Exercise: Creating user table row
  • Scope functions
  • Scope functions
  • let
  • Mapping a single object
  • The problem with member extension functions
  • Moving an operation to the end of processing
  • Dealing with nullability
  • also
  • takeIf and takeUnless
  • apply
  • The dangers of careless receiver overloading
  • with
  • run
  • Using scope functions
  • icon/quiz Created with Sketch.
    Quiz 203 attempts allowed
  • Exercise: Using scope functions
  • Exercise: orThrow
  • Context receivers
  • Context receivers
  • Extension function problems
  • Introducing context receivers
  • Use cases
  • Classes with context receivers
  • Concerns
  • Summary
  • icon/quiz Created with Sketch.
    Quiz 213 attempts allowed
  • Exercise: Logger
  • A birds-eye view of Arrow
  • A birds-eye view of Arrow
  • Functions and Arrow Core
  • Memoization
  • Testing higher-order functions
  • Error Handling
  • Working with nullable types
  • Working with Result
  • Working with Either
  • Data Immutability with Arrow Optics
  • Final words

Instructors

    • Marcin Moskala is an experienced developer and Kotlin trainer. He is the founder of the Kt. Academy, Kotlin GDE, an official JetBrains partner for teaching Kotlin, and author of the books Effective Kotlin, Kotlin Coroutines, and Android Development with Kotlin.

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $12 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub