Generate a unique, currently-unused key for a new record entry. Picks the first of key, key-1, key-2, … not in existing.
key
key-1
key-2
existing
Generate a unique, currently-unused key for a new record entry. Picks the first of
key,key-1,key-2, … not inexisting.