uniqueName

Generates a unique identifier by applying numeric suffixes until an unused variant is discovered.

Return

unique identifier safe to use within the current scope.

Parameters

base

preferred identifier.

used

mutable set tracking previously allocated identifiers.