![]() ![]() They mention mapping, reducing, pipelining, recursing, currying 4 and the use of higher order functions. These are language features that aid functional programming. They mention immutable data 1, first class functions 2 and tail call optimisation 3. When people talk about functional programming, they mention a dizzying number of “functional” characteristics. A number of the examples eschew pythonicity in order to demonstrate functional techniques common to many languages: map, reduce, pipeline. The examples are in Python, because many people find Python easy to read. The third section takes a loop that is a long series of successive data transformations and decomposes it into a functional pipeline. The second section takes longer loops, breaks them up into units and makes each unit functional. ![]() ![]() The first section of the article takes short, data transforming loops and translates them into functional maps and reduces. It shows examples of imperative, unfunctional code that people write every day and translates these examples to a functional style. That is, composition, pipelining, higher order functions. Many functional programming articles teach abstract functional techniques. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |