WLJS LogoWLJS Notebook

Attributes

Attributes[symbol] gives the list of attributes for a symbol.

Examples

Get attributes of a symbol:

Attributes[Plus]
(* {Flat, Listable, NumericFunction, OneIdentity, Orderless, Protected} *)

Check attributes of multiple symbols:

Attributes[{Sin, Cos}]
(* {{Listable, NumericFunction, Protected}, ...} *)

User-defined symbol:

Attributes[myFunc]
(* {} - no attributes by default *)

Please visit the official Wolfram Language Reference for more details.

On this page