[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: idempotent (was Re: exif --remove not idempotent, and a Debian man page bug)



 rhkramer writes:
> Some examples from (simple) math include adding zero or multiplying by
> 1.

Those are respectively the additive and multiplicative identities.  They
are, of course, idempotent but not good examples because they never
change the operand even on first application.

A better example of an idempotent operator is the absolute value
operator.

> An example from "real life" could be pressing the on (or off) button
> on some electronic device.

That's a good one.
-- 
John Hasler 
john@sugarbit.com
Elmwood, WI USA


Reply to: