Names

Names["string"]
gives a list of the names of symbols which match the string.

Names[patt]
gives a list of names matching the arbitrary string pattern patt.

Details and OptionsDetails and Options

  • Names["string"] gives the same list of names as ?string.
  • Names returns a list of strings corresponding to the names of symbols.
  • The string can contain the following metacharacters:
  • *match zero or more characters
    @match one or more characters, but not uppercase letters
  • Names["context`*"] lists all symbols in the specified context.
  • With SpellingCorrection->True, Names includes names that differ in a small fraction of their characters from those specifically requested.
  • With IgnoreCase->True or SpellingCorrection->True, Names treats lowercase and uppercase letters as equivalent when matching names.
  • Names[] lists all names in all contexts.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Get the names of symbols starting with List:

In[1]:=
Click for copyable input
Out[1]=

Get the names of all system symbols:

In[1]:=
Click for copyable input
Out[1]//Short=

The set of those that have the Orderless attribute:

In[2]:=
Click for copyable input
Out[2]=
Introduced in 1988
(1.0)
| Updated in 2007
(6.0)