This is a common idiom, and does not necessarily imply mutation.
Even in cases where you often do have mutation, say in databases, the benefits of a functional approach lie having pure functions between mutations rather than one big ball of Xs sometimes mutatingYs via Zs.
Here[0] is a wonderful talk that demonstrates this in practice.
Comments
This is a common idiom, and does not necessarily imply mutation.
Even in cases where you often do have mutation, say in databases, the benefits of a functional approach lie having pure functions between mutations rather than one big ball of Xs sometimes mutatingYs via Zs.
Here[0] is a wonderful talk that demonstrates this in practice.
0. https://youtu.be/vK1DazRK_a0?si=tmXr4NxDpZs48Omz