FP in CPP - Functions

Functions Since functional programming (FP) is the focus, let’s explore the most essential functions. We’ll be dealing with pure functions, first-class functions, and anonymous functions. These concepts are closely related to the stack which stores function control contexts. Pure functions All functions in FP are pure functions. Therefore, every function discussed below is pure. The most beneficial aspects of FP, such as concurrency and predictability, derive from these pure functions....

December 16, 2024 · 6 min · phruse (Lee Taeyeon)