mirror of
https://github.com/rjNemo/functional-programming-jargon
synced 2026-06-06 02:26:43 +00:00
Idempotency.
This commit is contained in:
parent
5463c47227
commit
18f85ba9c5
1 changed files with 6 additions and 2 deletions
|
|
@ -72,6 +72,12 @@ curriedSum(40)(2) // 42.
|
|||
---
|
||||
|
||||
## Idempotency
|
||||
> A function is said to be idempotent if it has no side-effects on multiple
|
||||
executions with the the same input parameters.
|
||||
|
||||
`f(f(x)) = f(x)`
|
||||
|
||||
`Math.abs(Math.abs(10))`
|
||||
|
||||
---
|
||||
|
||||
|
|
@ -145,5 +151,3 @@ referential transparent.
|
|||
|
||||
## Chain
|
||||
---
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue