FizzyElt / functional-programming

帶你探索 functional programming
https://fizzyelt.github.io/functional-programming/
MIT License
25 stars 0 forks source link

[pure function] confluence #41

Closed dannypsnl closed 10 months ago

dannypsnl commented 10 months ago

Confluence means that the order of performing various subcomputations doesn’t matter so long as they all finish: in the expression (2 + 5) * (3 + 6), it doesn’t matter which addition you do first or whether you distribute the expressions over each other; the answer is the same.

The example of confluence in lambda calculus is beta reduction, and this is the most pure function similar formal idea I can find