re: Explain idempotency (in REST) like I'm Five VIEW POST

FULL DISCUSSION
 

A great example of an idempotent function is the absolute value function. abs(-4) = 4 abs(4) = 4. Continuing to apply abs() onto itself will always yield the same result.

For those that have done some Elixir before: -4 |> abs |> abs |> ... will always yield 4

code of conduct - report abuse