Well, even in Wikipedia, the definition is quoted as being different for CS vs the unary operation you describe.<p>&quot;In computer science, the term idempotent is used more comprehensively to describe an operation that will produce the same results if executed once or multiple times.&quot;<p>Which is more that f(x) == f(x) == f(x) for the state affected by f.