In the previous chapter, you looked at some of the key concepts and vocabulary that you’ll use as you develop functional-style code. You’ll now turn your attention to looking at some of the core programming patterns that differentiate functional code from imperative and that you’ll use to structure the flow of your functional code. You’ll first look at some ways to use map, filter, and reduce functions to perform common operations on sets of data. They’re useful in most scenarios where, as an imperative programmer, you would have used loops based on foreach or for to iterate through ...
© Rob Aley 2017
Rob Aley, Pro Functional PHP Programming, https://doi.org/10.1007/978-1-4842-2958-3_3
3. Getting Started with Functional Patterns
Rob Aley1
(1)Oxford, UK
Get Pro Functional PHP Programming: Application Development Strategies for Performance Optimization, Concurrency, Testability, and Code Brevity now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.