This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Documentation / Mathematica / Built-in Functions / Programming / Scoping /


FilledSmallSquare Unique[ ] generates a new symbol, whose name is of the form $nnn.

FilledSmallSquare Unique[x] generates a new symbol, with a name of the form x$nnn.

FilledSmallSquare Unique[x, y, ... ] generates a list of new symbols.

FilledSmallSquare Unique["xxx"] generates a new symbol, with a name of the form xxxnnn.

FilledSmallSquare Unique[x] numbers the symbols it creates using $ModuleNumber, and increments $ModuleNumber every time it is called.

FilledSmallSquare Unique["xxx"] numbers the symbols it creates sequentially, starting at 1 for each string xxx.

FilledSmallSquare Unique[name, , , ... ] generates a symbol which has the attributes .

FilledSmallSquare See Section 2.7.3.

FilledSmallSquare See also: Symbol, ToExpression, Names, GeneratedParameters, Module, CharacterRange.

FilledSmallSquare New in Version 1.

Further Examples