Reputation: 440
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
Reputation: 413709
Are you thinking about the word "idempotent"? (I'm frantically looking for my Category Theory book ...)
Upvotes: 5