Tagged articles
higher-order functions
47 articles · Page 1 of 1
This article reviews two architecture case studies: the Main-Safe pattern using Kotlin suspend functions to enforce main-thread safety in Android, and a computational abstraction using FlowChain and FlowNode higher-order functions to separate invariant and variant logic, eliminating if-else chains through flow orchestration.
Android ArchitectureFlowChainFlowNode
0 likes · 5 min read

This article explores abstraction as the fundamental technique for managing complexity in computer science, covering its philosophical roots, computational abstraction via functions and higher-order functions, data abstraction with abstraction barriers, and metalinguistic abstraction through language design.
abstractionabstraction barrierscomplexity management
0 likes · 11 min read

Explore how Kotlin’s inline, crossinline, and noinline modifiers transform lambda handling, eliminate object creation overhead, enable non‑local returns, and control function expansion, with detailed code examples comparing Java anonymous classes, Kotlin lambdas, bytecode, and practical usage scenarios.
InlineKotlincrossinline
0 likes · 11 min read

This article explains Go's higher‑order functions, covering their definition, common use‑cases such as decorators, strategy and pipeline patterns, practical implementation details, generic support, and tips for writing clean, performant functional code in real‑world projects.
DecoratorStrategy Patternhigher-order functions
0 likes · 7 min read

This article explains how Python treats functions as first‑class objects, showing how to assign them to variables, pass them as arguments, return them from other functions, store them in data structures, and use functional tools like lambda, map, filter, and reduce to write more reusable and expressive code.
Pythonfirst-class functionsfunctional programming
0 likes · 10 min read

This article explains the benefits of functional programming in Go, outlines four core concepts, presents practical rules, and demonstrates five concrete examples—including pure functions, immutability, higher‑order functions, currying, and recursion—to help developers write clearer, more testable code.
CurryingGoPure Functions
0 likes · 9 min read

Learn what higher-order functions are in Python, how they can accept or return other functions, explore built-in examples like map, filter, sorted, reduce, and see custom implementations and lambda integrations through clear code snippets and practical usage tips.
Pythonfilterfunctional programming
0 likes · 5 min read

This article explains what Python's functools.partial is, shows its basic syntax, outlines its advantages such as reducing code duplication and improving readability, and provides multiple practical code examples—including simple addition, keyword arguments, complex use cases, comparisons with lambda, and real‑world applications in GUI and multithreading contexts.
Pythoncode reusefunctools
0 likes · 7 min read

This article explains Python closures and decorators, detailing their definitions, formation conditions, practical examples, common use cases, and how decorators rely on closures, while providing code snippets for counters, timing, and repeatable execution.
DecoratorFunction WrappingPython
0 likes · 14 min read

This article explains the core concepts of function calls and references in Python, covering basic definitions, common calling methods, advanced applications such as passing functions as arguments, returning functions, using functions as objects, and includes numerous code examples illustrating direct calls, indirect calls, decorators, closures, and callbacks.
Function CallsFunction ReferencesPython
0 likes · 9 min read

This article explains why assigning a function to a variable without parentheses doesn’t invoke it, how to pass functions as arguments in Python, and demonstrates the concept with a Prisoner’s Dilemma code example, clarifying common misconceptions about function calls and references.
Pythondebuggingfunction reference
0 likes · 6 min read

This article explains functional programming concepts in Java, including immutability, stateless functions, higher‑order functions, closures, currying, recursion, lazy evaluation, and referential transparency, and demonstrates each with practical code samples and JMH performance benchmarks.
JMHfunctional programminghigher-order functions
0 likes · 13 min read

Function Object Programming (FOP) in PHP treats functions as first‑class objects, fully compatible with OOP, enabling reusable, extensible code; the article explains its concepts, shows a practical example using array_map, discusses cross‑platform support, and outlines its advantages such as reusability, scalability, and cleaner code.
Function ObjectsOOP CompatibilityPHP
0 likes · 3 min read

Function Object Programming (FOP) in PHP leverages the Closure class to treat functions as first‑class objects, offering code reuse, modularity, performance gains, and testability, with examples of creating, invoking, and applying closures in higher‑order functions and callbacks.
Function ObjectsPHPbackend development
0 likes · 4 min read

This article explains how Python functions can be returned as values, covering simple functions, stateful closures, multiple returns, closures, decorators, function factories, anonymous lambda functions, and class methods, each illustrated with clear code examples and explanations.
closureshigher-order functions
0 likes · 6 min read

This article introduces functional programming techniques in Python, covering first‑class functions, treating functions as objects, higher‑order functions, lambda expressions, and built‑in utilities like map, filter, and reduce, with clear code examples and explanations of their practical uses.
Map Filter ReducePythonfunctional programming
0 likes · 10 min read

This guide explains what higher-order functions are, shows how to pass and return functions in Python with clear examples like map, filter, reduce, and lambda, and highlights their benefits for cleaner, more abstract, and flexible code.
Pythonfilterhigher-order functions
0 likes · 5 min read

Go treats functions as first‑class citizens, enabling higher‑order functions that accept other functions as arguments or return them, and this article explains their definition, demonstrates practical examples—including callbacks, closures, and functional‑style map/filter operations—while highlighting common use cases such as decorators and event handling.
Gohigher-order functions
0 likes · 5 min read

This article explains closures, anonymous functions, and higher‑order functions in Go, showing how to use closures, pass functions as arguments, and return functions from other functions with clear code examples and practical insights.
Anonymous FunctionsGobackend development
0 likes · 7 min read

This article explains what higher‑order functions are in Python, introduces the commonly used map, filter, sorted and reduce functions, demonstrates their usage with clear code examples, and provides exercises for applying these concepts to real‑world data processing tasks.
filterfunctional programminghigher-order functions
0 likes · 8 min read

This article introduces functional programming concepts in Python, explaining pure functions, higher‑order functions, and function composition, and demonstrates ten practical examples—including map, filter, reduce, list comprehensions, generators, partial application, operator usage, compose, zip, and recursion—to illustrate how to write concise, maintainable code.
Pythonhigher-order functions
0 likes · 5 min read

This article explains the core concepts of higher-order functions and function composition in functional programming, defines them, and provides ten practical Python code examples illustrating usage as parameters, return values, composition, and common utilities such as map, filter, reduce, list comprehensions, and functools.partial.
Pythonfilterfunction composition
0 likes · 4 min read

Higher-order functions and function composition are core concepts in functional programming, allowing functions to be passed as parameters and returned as values, and enabling the construction of complex functionality by composing functions together.
CurryingPythonfilter
0 likes · 6 min read

This article introduces functional programming fundamentals, showcases common JavaScript scenarios like map/filter/reduce, explains key concepts such as first‑class functions, laziness, pure functions, currying, pipe, and compose, and demonstrates their practical application in a real‑world AgileBI report‑cell configuration system.
CurryingJavaScriptPipe
0 likes · 9 min read

This article offers a concise introduction to functional programming’s history, core concepts such as currying, composition, and immutability, and demonstrates their implementation in JavaScript using arrow functions and utilities like curry, compose, pipe, and map, while comparing functional and object‑oriented approaches.
CurryingJavaScriptfunctional programming
0 likes · 21 min read

This article explains how closures and currying form the core of JavaScript functional programming, demonstrates multiple curry implementations, shows practical uses such as argument caching, debounce/throttle, and lodash utilities, and highlights their relevance for front‑end developer interviews.
CurryingJavaScriptclosures
0 likes · 14 min read

Functional programming, once a niche paradigm, is rapidly entering mainstream software development as teams adopt pure functions, immutability, and higher‑order functions to reduce bugs, improve modularity, and manage the growing complexity of large codebases across many languages and frameworks.
Programming ParadigmsPure Functionsfunctional programming
0 likes · 11 min read

This article explores how Go 1.18’s generic type parameters enable functional programming features such as higher‑order functions, lazy evaluation, and partial application, while also highlighting the limitations and design compromises that arise from Go’s type system and language ergonomics.
GenericsGofunctional programming
0 likes · 27 min read

This article explains Python return functions and anonymous (lambda) functions, demonstrating how to create higher‑order functions, use closures to defer execution, and simplify code with lambda expressions, complete with practical code examples and detailed explanations.
Pythonclosureshigher-order functions
0 likes · 5 min read

This article introduces Python's functional programming features, covering first‑class functions, callable objects, storing functions in data structures, higher‑order functions, nested functions, lambda expressions, and the use of map, filter, and reduce with clear code examples.
Pythonfilterfirst-class functions
0 likes · 9 min read

The article explains how higher‑order functions such as every, map, and filter can replace repetitive loops over arrays or lists, reducing code duplication, improving readability, and lowering the chance of bugs while warning against over‑using functional style when it harms clarity.
JavaScriptLoopscode reuse
0 likes · 3 min read


政采云技术Feb 15, 2022 · Fundamentals
This article introduces functional programming as a programming paradigm, explains its core concepts such as pure functions, higher‑order functions, closures, currying, and functors, and demonstrates how these ideas are applied in modern JavaScript frameworks and libraries with clear code examples.
CurryingJavaScriptPure Functions
0 likes · 18 min read

This article provides a beginner-friendly overview of functional programming concepts in Python, covering first‑class functions, callable objects, higher‑order functions, lambda expressions, and the use of map, filter, and reduce with illustrative code examples.
filterfirst-class functionsfunctional programming
0 likes · 10 min read

This article explains functional programming concepts in Python, contrasting imperative and functional models, and demonstrates key techniques such as recursion, laziness, map, filter, reduce, lambda expressions, higher‑order functions, partial application, and comprehensions with clear code examples.
filterhigher-order functionslambda
0 likes · 15 min read

This article explains functional programming as a paradigm focused on pure functions and data‑to‑data mapping, contrasts it with imperative programming, introduces lambda calculus, pure functions, higher‑order functions, functors, monads, and provides JavaScript examples that show how to write composable, side‑effect‑free code for front‑end development.
JavaScriptMonadsPure Functions
0 likes · 19 min read

The article explains that an Observable in Rx is a higher‑order function acting like a “parcel box” which, when subscribed, delivers a stream of data and can be merged or unsubscribed, using examples such as fromEvent, interval, and merge to illustrate unified asynchronous handling.
Async ProgrammingSubscribeUnsubscribe
0 likes · 11 min read

This article explains Python higher‑order functions, showing how variables can reference functions, how function names act as variables, and how to pass functions as arguments, with step‑by‑step code examples and output screenshots to illustrate each concept.
Functions as variablesPythonfunctional programming
0 likes · 5 min read

This article explains functional programming concepts, their importance, and how to apply them in Swift through high‑order functions, lazy evaluation, custom operators, and composable image‑filter pipelines, while also addressing common pitfalls such as nested callbacks and OCP violations.
RxSwiftSWIFTcode composition
0 likes · 19 min read

This article walks through Go function fundamentals, showing how functions can be treated as variables, how to define function types, and demonstrating higher‑order functions, anonymous functions, and closures with clear code examples and visual outputs.
Anonymous FunctionsGofunctions
0 likes · 7 min read

The article surveys functional programming’s origins, from Hilbert and Church to lambda calculus, explains its pure‑computation model versus imperative state mutation, outlines essential concepts such as currying, higher‑order functions, and immutability, discusses JavaScript‑specific practices and limitations, and notes the growing impact of functional ideas in modern front‑end frameworks.
Pure Functionshigher-order functionsimmutability
0 likes · 24 min read

This article demonstrates how to apply functional programming concepts in JavaScript by refactoring an example that reads user data from an API, filters active SREs, and formats output, illustrating the benefits of pure functions, higher‑order utilities like map, filter, reduce, and improved code readability and maintainability.
Pure Functionsfilterfunctional programming
0 likes · 22 min read

This comprehensive guide explains Python functions—from basic definition syntax and calling conventions to default arguments, variable scopes, anonymous lambda expressions, and higher‑order utilities like map, reduce, filter, and sorted—illustrated with clear code examples and output results.
ParametersPythonReturn Values
0 likes · 10 min read

This article explains what higher‑order functions are, why JavaScript supports functional programming, demonstrates built‑in methods like map, filter and reduce with code examples, and shows how to create your own higher‑order function for clearer, more concise code.
Array MethodsJavaScriptfilter
0 likes · 8 min read

This article provides a comprehensive guide to Python functions, covering their definition syntax, calling conventions, parameter handling (including default, *args, **kwargs), return values, variable scope, anonymous lambda functions, and higher‑order utilities such as map, reduce, filter, and sorted, with clear code examples.
filterhigher-order functionslambda
0 likes · 10 min read

This article introduces Python’s functools module, explaining how decorators, partial objects, update_wrapper, total_ordering, cmp_to_key, lru_cache, reduce, and singledispatch work, and provides clear code examples that demonstrate their practical use in everyday programming.
Cachingdecoratorsfunctools
0 likes · 19 min read

By using abstraction to model common concepts and composition to build complex behavior from simple, pure‑function building blocks like map, filter, and reduce, the article shows how functional programming techniques underpin Redux and React, providing a systematic way to tame front‑end software complexity.
CompositionReactRedux
0 likes · 22 min read

JavaScript functional programming, once a niche topic, has surged in popularity since ES6, and this article explores practical implementations—showcasing functional code versus traditional approaches, benefits like clearer semantics and reusability, common models such as closures, higher‑order functions, currying, and composition, plus optimization techniques.
CompositionCurryingJavaScript
0 likes · 12 min read
