Donald Plummer
Donald Plummer

Reputation: 440

Word for a change that only applies once

I'm trying to remember the word for a function that can be applied multiple times to the same data set but only makes its change once. I've got a Rails migration that sets some data, but only if that data isn't set. So if it is run multiple times it only does work once.

Upvotes: 0

Views: 44

Answers (1)

Pointy
Pointy

Reputation: 413709

Are you thinking about the word "idempotent"? (I'm frantically looking for my Category Theory book ...)

Upvotes: 5

Related Questions