From 18f85ba9c5a0274c51d4a8d8cf85305d6c910097 Mon Sep 17 00:00:00 2001 From: "Hemanth.HM" Date: Sat, 28 Mar 2015 13:18:11 +0530 Subject: [PATCH] Idempotency. --- readme.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 001700e..38b2b68 100644 --- a/readme.md +++ b/readme.md @@ -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 --- - -