anames
sequence of assigned names
Calling Sequence
Parameters
Description
Thread Safety
Examples
anames( )
anames( type )
anames( 'environment' )
anames( 'user' )
anames( 'alluser' )
anames( 'active' )
type
-
expression
The anames command returns an expression sequence of names that are currently assigned values other than their own name.
Only top-level global names are returned. This excludes module exports and local variables. The name of a global module itself will be included in the anames list, and can be used to find child members.
When anames is called with a type, anames returns an expression sequence of names that are currently assigned values of the given type.
When called with the argument environment, anames returns an expression sequence of environment variables in the active environment.
When called with the argument user, anames returns an expression sequence of user-assigned names. A user-assigned name is defined as a name that is not saved in a library, and does not contain a forward-slash ('/') or leading underscore ('_').
When called with the argument alluser, anames returns the same output as anames(user) without filtering names containing a forward-slash ('/') or leading underscore ('_').
When called with the argument active, anames returns all the global names that have been assigned to in the current session.
The anames command is thread-safe as of Maple 15.
For more information on thread safety, see index/threadsafe.
a≔12
anames⁡
defaultScreenWidth,convert/to_special_function/hierarchy,type/local,cosh,solve,PackageManagement,sech,getenv,tanh,arccsc,convert/string,arccsch,TypeTools,sec,convert/list,IsWorksheetInterface,Typesetting,floor,arcsin,D,type/PhysicsVectors,arcsec,arccosh,Physics/UserSetup,vector,matrix,fremove,arcsinh,RandomTools,interface,debugger/no_output,DifferentialGeometry,LinearAlgebra,zip,filepos,Physics/ModuleIsLoaded,a,packages,ListTools,FunctionAdvisor,type/assignable,coth,subtype,copy,version,StringTools,unprotect,dsolve,arctanh,protect,csc,ArrayTools,`-`,sinh,sprintf,tools/gensym,`/`,rtable_dims,arctan,cos,FileTools,arcsech,arccot,tan,`.`,pdsolve,arccos,csch,arccoth,MathematicalFunctions,cot,sin,nprintf,Physics,is
anames⁡integer
defaultScreenWidth,Order,Digits,printlevel
anames⁡environment
%,%%,%%%,Digits,Order,_ans,mod,Normalizer,Rounding,Testzero,index/newtable,printlevel,NumericEventHandlers,UseHardwareFloats,_Env_in_TestTools_Try,_Env_Plot_StandardInterface
anames⁡user
defaultScreenWidth,a
To find assigned names with a common prefix.
test1≔1:test2≔2:test3≔3.2:testall≔3.2:
select⁡type,anames⁡,suffixed⁡test
test1,test2,test3,testall
select⁡type,anames⁡,suffixed⁡test,posint
test1,test2,test3
select⁡type,anames⁡integer,suffixed⁡test,posint
test1,test2
See Also
assigned
environment variables
history
unames
Download Help Document