Skip to content

Latest commit

 

History

History
40 lines (23 loc) · 971 Bytes

File metadata and controls

40 lines (23 loc) · 971 Bytes

SetAttributes

SetAttributes(symbol, attrib)

adds attrib to symbol's attributes.

Examples

>> SetAttributes(f, Flat) 
   
>> Attributes(f)    
{Flat}    

Multiple attributes can be set at the same time using lists:

>> SetAttributes({f, g}, {Flat, Orderless})    
>> Attributes(g)    
{Flat, Orderless}    

Related terms

Attributes, ClearAttributes, Constant, Flat, HoldAll,HoldFirst, HoldRest, Listable, NHoldAll, NHoldFirst, NHoldRest, Orderless

Implementation status

  • ✅ - full supported

Github