1. Functions in programming that do not modify the state of their input parameters or external variables, always returning the same output for the same input without side effects
Immutable functions are essential in functional programming paradigms.
Funções imutáveis são essenciais em paradigmas de programação funcional.
2. Pure functions that guarantee predictability and easier testing by avoiding state changes
Using immutable functions reduces bugs caused by unexpected state mutations.
O uso de funções imutáveis reduz bugs causados por mutações de estado inesperadas.