Functional JavaScript 9 - The Magic of The Reduce Function (with Examples in JavaScript)

preview_player
Показать описание
Reducing (or Folding) is a process of recombining an input array into a single value by applying a function to each element of that array. The reduce function is one of the most interesting functions in programming. This doesn't only apply to JavaScript, but is general and applicable to most of the programming languages.

The reduce is the fundamental concept behind transducers: the generalization of the computation over collections.

Functional programming is a programming paradigm in which you build programs by composing functions. The computation is then the evaluation of those functions. Functional programming focuses on the usage of pure functions and on avoiding shared, mutable state. This programming paradigm is declarative. Functional code is usually more concise and easier to test.

In this mini series, we will embark on an exciting journey to learn a bit about functional programming by using JavaScript. Presented concepts will be mostly universal and applicable to other programming languages. This series is created with beginners and non-programmers in mind; don't worry, we will take it slowly!

#functional #javascript #filter
Рекомендации по теме
Комментарии
Автор

glad that i turned off my recommendation extension. This is the clearest explanation on reduce. Asante.

Joshua
Автор

I was waiting for this episode and am very glad that it is finally here! Thank you so much, Zaiste!

RobertWildling
Автор

Great video, very nice explanation, may i ask what is the editor used? Thanks

maggiorenne
Автор

Thank you very much for this great series! Is it possible to have the notes as a pdf file, for future reference?

ΔημήτριοςΦκιαράς
Автор

its really a great video finally i got the idea ... awesome !!!! so much thanks

kimse
Автор

No explanation of how to use reduce with Strings Arrays...

yaku-tecnologia