filmov
tv
Reduce explained #1 | functional programming in javascript (with Ramda.JS) (part 5)

Показать описание
Reduce is like a Swiss army knife, it is ultimate list operation, even map and filter functions are specialized cases of reduce. Once you are familiar with it, you'll start to see patterns in your everyday code. Expressing list operations in terms of reduce, instead of messy for/while loops, would make your code super clean and readable. You can also generate new functions based on reduce (map/filter). In this video we'll start by exploring different list examples to try and abstract away certain characteristics, so we can understand exactly what reduce is.