Is there a name for a function that becomes a NOOP after first call?

38 Views Asked by At

Is there a name for a function that should only be called once, but can safely be called multiple times without knowledge of whether it has been called before (i.e. it becomes a NOOP after the first call)?

1

There are 1 best solutions below

0
On

You might be looking for the word idempotent, which refers in general to an operation where doing it several times has the same result as doing it once.