About 163,000 results
Open links in new tab
  1. Higher-order functions and lambdas | Kotlin Documentation

    Nov 27, 2024 · A good example of a higher-order function is the functional programming idiom fold for collections. It takes an initial accumulator value and a combining function and builds its return value by consecutively combining the current accumulator value with each collection element, replacing the accumulator value each time:

  2. Evolving with Kotlin — Advanced Functional Programming

    Oct 27, 2023 · Kotlin, with its expressive syntax and robust features, has quickly become a trusted ally for many in this journey. While its initial appeal may come from its concise syntax and interoperability with Java, Kotlin’s real strength lies in its …

  3. My favorite examples of functional programming in Kotlin

    Jan 8, 2018 · We’ll see how a difficult problem can be simplified and made highly readable using a functional programming style and tools. We will implement the Quicksort algorithm. The algorithm is simple: we choose some element (pivot) and we distribute all other elements to the list with bigger and smaller elements than the pivot.

  4. Functional Programming in Kotlin (Part 1)— Higher-Order …

    Oct 16, 2019 · In this first part of the series, I will begin by telling you about one of the most important concepts in functional programming and that is Higher-Order Functions. I will talk about what...

  5. Functional Programming in Kotlin: Mastering Higher-Order …

    Nov 17, 2024 · Explore the principles of functional programming in Kotlin, including higher-order functions, lambdas, function composition, and currying. Learn how to leverage these concepts to write more expressive and efficient Kotlin code.

  6. Learn Functional Programming in Kotlin with Real-World Examples

    Mar 2, 2025 · This tutorial will guide you through the process of mastering functional programming in Kotlin using real-world examples, demonstrating how to leverage Kotlin’s powerful FP features to write concise, efficient, and maintainable code.

  7. Kotlin functional programming - Tutcoach

    May 16, 2024 · Syntax in Kotlin: Kotlin is a modern programming language that fully supports functional programming paradigms. Here’s a quick overview of some key syntax used in Kotlin for functional programming.

  8. Unlocking the Power of Functional Programming in Kotlin

    Oct 13, 2023 · Kotlin provides a rich set of functions for working with collections, such as map, filter, reduce, and fold. These functions allow you to transform and process data in a functional style. Syntax:

  9. Exploring Functional Programming in Kotlin: Your Guide to

    Explore how to leverage Kotlin's functional programming features to write concise, efficient code. From higher-order functions to immutability, dive into the world of Kotlin FP.

  10. How can we write Kotlin-style functional code? Favor pure functions that are free of side-effects i.e. avoid inline modification. Explicitly functional expressions and constructs. We’ll spent most of this lecture on this topic! Functions in Kotlin are "first-class citizens" of the language.

  11. Some results have been removed