The Single Biggest Mistake Programmers Make Every Day
Eric Elliott

Your definition of idempotence is wrong. It is not defined as the characteristic of returning a constant output given the same input but, rather, of being able to repeat an operation multiple times by chaining the function call to itself without changing the output beyond the first application, so that

f(f(x)) = f(x)

Like what you read? Give James Munroe a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.