DEV Community

Discussion on: Does functional programming have any advantage in real environments?

Collapse
 
hnrq profile image
Henrique Ramos

One real-world application of functional programming (Mainly immutability) is in Redux's reducers. They receive pure functions (Functions that have a predictable output Y, given an input X) and should always return a new state, not modify the current.