An introduction to functional programming
Many functional programming articles teach abstract functional techniques. That is, composition, pipelining, higher order functions. This one is different. It shows examples of imperative, unfunctional code that people write every day and translates these examples to a functional style.
Many functional programming articles teach abstract functional techniques. That is, composition, pipelining, higher order functions. This one is different. It shows examples of imperative, unfunctional code that people write every day and translates these examples to a functional style. The first section of the article takes short, data transforming loops and translates them into functional maps and reduces. The second section takes longer loops, breaks them up into units and makes each unit functional. The third section takes a loop that is a long series of successive data transformations and
saved by
related reading
- A practical introduction to functional programmingmaryrosecook.com
- From Imperative to Functional: how to make the leap.loup-vaillant.fr
- Functional Programming HOWTO — Python 3.14.6 documentationdocs.python.org
- how I think when I think about programming - alice mazalicemaz.com
- What’s so great about functional programming anyway?jrsinclair.com
- Reading 13: Map, Filter, Reduceweb.mit.edu
- CSC 151 - Higher-order design, recursive and othereikmeier.sites.grinnell.edu
- Functional Programming | Course Readings | 6.101 Fall 2023py.mit.edu
- combinators in Rubymooreniemi.github.io
- styleguide | Style guides for Google-originated open-source projectsgoogle.github.io
- What is good code? (part 2)loup-vaillant.fr
- Reading 16: Map, Filter, Reduceweb.mit.edu