What is an idempotent operation?

前端 未结 15 1171
情话喂你
情话喂你 2020-11-22 03:27

What is an idempotent operation?

15条回答
  •  情书的邮戳
    2020-11-22 03:36

    It is any operation that every nth result will result in an output matching the value of the 1st result. For instance the absolute value of -1 is 1. The absolute value of the absolute value of -1 is 1. The absolute value of the absolute value of absolute value of -1 is 1. And so on.

    See also: When would be a really silly time to use recursion?

提交回复
热议问题